From: Bas Pape Date: Thu, 16 May 2013 17:33:13 +0000 (+0200) Subject: Show a message when failing to load the key file X-Git-Tag: 0.10-beta1~135 X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=commitdiff_plain;h=6f6bc52f820bd12327b3be77b2fe6ca4398ead72 Show a message when failing to load the key file People got confused when quassel did not accept their keyfile; now a message is shown hinting at the possibility of a passphrase being present. --- diff --git a/src/qtui/settingspages/identityeditwidget.cpp b/src/qtui/settingspages/identityeditwidget.cpp index f670753f..b5a3dfaa 100644 --- a/src/qtui/settingspages/identityeditwidget.cpp +++ b/src/qtui/settingspages/identityeditwidget.cpp @@ -25,6 +25,7 @@ #include #include #include +#include #include "client.h" #include "iconloader.h" @@ -340,6 +341,7 @@ QSslKey IdentityEditWidget::keyByFilename(const QString &filename) goto returnKey; } } + QMessageBox::information(this, tr("Failed to read key"), tr("Failed to read the key file. It is either incompatible or invalid. Note that the key file must not have a passphrase.")); returnKey: return key; }