Show a message when failing to load the key file 17/head
authorBas Pape <baspape@gmail.com>
Thu, 16 May 2013 17:33:13 +0000 (19:33 +0200)
committerBas Pape <baspape@gmail.com>
Thu, 16 May 2013 18:05:22 +0000 (20:05 +0200)
People got confused when quassel did not accept their keyfile; now a
message is shown hinting at the possibility of a passphrase being
present.

src/qtui/settingspages/identityeditwidget.cpp

index f670753..b5a3dfa 100644 (file)
@@ -25,6 +25,7 @@
 #include <QDropEvent>
 #include <QFileDialog>
 #include <QUrl>
 #include <QDropEvent>
 #include <QFileDialog>
 #include <QUrl>
+#include <QMessageBox>
 
 #include "client.h"
 #include "iconloader.h"
 
 #include "client.h"
 #include "iconloader.h"
@@ -340,6 +341,7 @@ QSslKey IdentityEditWidget::keyByFilename(const QString &filename)
                 goto returnKey;
         }
     }
                 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;
 }
 returnKey:
     return key;
 }