Make sure we don't lock the database while a dialog is open.

This can happen when
- the user is picking out a file to save the database as
- a dialog asking the user to save/discard/cancel the current database
  changes is active

It is dangerous to lock the databases while these actions are still
in progress.

Closes #208
This commit is contained in:
Felix Geyer 2015-07-13 21:17:11 +02:00
parent c6105a08ab
commit 721bec9794
2 changed files with 12 additions and 1 deletions

View file

@ -65,6 +65,7 @@ private Q_SLOTS:
void applySettingsChanges();
void trayIconTriggered(QSystemTrayIcon::ActivationReason reason);
void toggleWindow();
void lockDatabasesAfterInactivity();
private:
static void setShortcut(QAction* action, QKeySequence::StandardKey standard, int fallback = 0);