SSH Agent: Show error messages if something fails
This commit is contained in:
committed by
Janek Bevendorff
parent
4ce0005711
commit
084758908a
@@ -198,6 +198,7 @@ MainWindow::MainWindow()
|
||||
#endif
|
||||
#ifdef WITH_XC_SSHAGENT
|
||||
SSHAgent::init(this);
|
||||
connect(SSHAgent::instance(), SIGNAL(error(QString)), this, SLOT(showErrorMessage(QString)));
|
||||
m_ui->settingsWidget->addSettingsPage(new AgentSettingsPage(m_ui->tabWidget));
|
||||
#endif
|
||||
|
||||
@@ -454,6 +455,11 @@ void MainWindow::showKeePassHTTPDeprecationNotice()
|
||||
disconnect(m_ui->globalMessageWidget, SIGNAL(hideAnimationFinished()), this, SLOT(showKeePassHTTPDeprecationNotice()));
|
||||
}
|
||||
|
||||
void MainWindow::showErrorMessage(const QString& message)
|
||||
{
|
||||
m_ui->globalMessageWidget->showMessage(message, MessageWidget::Error);
|
||||
}
|
||||
|
||||
void MainWindow::appExit()
|
||||
{
|
||||
m_appExitCalled = true;
|
||||
|
||||
Reference in New Issue
Block a user