Automatically try to unlock db when global auto-type key has been pressed

Fixed gcc 4.2 compiler warning

git-svn-id: https://svn.code.sf.net/p/keepassx/code/trunk@199 b624d157-de02-0410-bad0-e51aec6abb33
This commit is contained in:
sniperbeamer
2008-05-17 10:39:54 +00:00
parent 1219467c91
commit d3259227f1
3 changed files with 11 additions and 3 deletions

View File

@@ -162,7 +162,11 @@ void AutoType::perform(IEntryHandle* entry, QString& err,bool hideWindow,int nr)
#ifdef GLOBAL_AUTOTYPE
void AutoType::performGlobal(){
if (MainWin->db==NULL) return;
if (MainWin->isLocked())
MainWin->OnUnLockWorkspace();
if (!MainWin->isOpened())
return;
Display* d = QX11Info::display();
Window w;