Hide Auto-Type action when it's not available.

This commit is contained in:
Felix Geyer 2015-04-14 23:12:10 +02:00
parent 2dde18b179
commit ecb2e337ef

View File

@ -68,6 +68,8 @@ MainWindow::MainWindow()
autoType()->registerGlobalShortcut(globalAutoTypeKey, globalAutoTypeModifiers); autoType()->registerGlobalShortcut(globalAutoTypeKey, globalAutoTypeModifiers);
} }
m_ui->actionEntryAutoType->setVisible(autoType()->isAvailable());
m_inactivityTimer = new InactivityTimer(this); m_inactivityTimer = new InactivityTimer(this);
connect(m_inactivityTimer, SIGNAL(inactivityDetected()), connect(m_inactivityTimer, SIGNAL(inactivityDetected()),
m_ui->tabWidget, SLOT(lockDatabases())); m_ui->tabWidget, SLOT(lockDatabases()));