Fixed: "KeepassX 0.3.3 fails to lock itself after Ctrl-V (autotype)" (Bug #2106604)

Clear Klipper history on KDE4

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@230 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
sniperbeamer
2008-10-02 14:11:35 +00:00
parent f533ea45a7
commit a8fafee769
7 changed files with 38 additions and 17 deletions

View File

@@ -19,7 +19,7 @@
#include <QDesktopWidget>
#include "AutoTypeDlg.h"
AutoTypeDlg::AutoTypeDlg(QList<IEntryHandle*> entries, QList<int> numbers){
AutoTypeDlg::AutoTypeDlg(QList<IEntryHandle*> entries, QList<int> numbers, bool wasLocked) : pWasLocked(wasLocked){
setupUi(this);
setAttribute(Qt::WA_DeleteOnClose);
@@ -101,5 +101,5 @@ bool AutoTypeDlg::event(QEvent* event){
void AutoTypeDlg::itemSelected(QTreeWidgetItem* item){
close();
QString err;
AutoType::perform(itemToEntry[item].dbHandle,err,false,itemToEntry[item].nr);
AutoType::perform(itemToEntry[item].dbHandle, err, pWasLocked, itemToEntry[item].nr, pWasLocked);
}

View File

@@ -24,7 +24,7 @@ class AutoTypeDlg : public QWidget, private Ui::AutoTypeDlg
Q_OBJECT
public:
AutoTypeDlg(QList<IEntryHandle*> entries, QList<int> numbers);
AutoTypeDlg(QList<IEntryHandle*> entries, QList<int> numbers, bool wasLocked);
protected:
void paintEvent(QPaintEvent* event);
@@ -42,4 +42,5 @@ class AutoTypeDlg : public QWidget, private Ui::AutoTypeDlg
static bool itemLessThan(QTreeWidgetItem* i1, QTreeWidgetItem* i2);
QHash<QTreeWidgetItem*,AutoTypeEntry> itemToEntry;
QPixmap BannerPixmap;
bool pWasLocked;
};