Commit 314df641 authored by Laurent Montel's avatar Laurent Montel 😁 Committed by Pali Rohár

Minor clean

parent 5154ce3c
......@@ -82,7 +82,6 @@ OtrGUIClient::OtrGUIClient(Kopete::ChatSession *parent)
otrActionMenu->addAction(actionVerifyFingerprint);
setXMLFile(QStringLiteral("otrchatui.rc"));
// setupGUI();
encryptionEnabled(parent, OtrlChatInterface::self()->privState(parent));
}
......
......@@ -58,7 +58,7 @@ extern "C" {
#include <sys/stat.h>
}
OtrlChatInterface *OtrlChatInterface::mSelf = 0;
OtrlChatInterface *OtrlChatInterface::mSelf = nullptr;
static OtrlUserState userstate;
static OtrlPolicy confPolicy;
//static void *updateContextList = 0;
......
......@@ -68,12 +68,12 @@ OTRPreferences::OTRPreferences(QWidget *parent, const QVariantList &args)
otrlConfInterface = new OtrlConfInterface(widget);
connect(preferencesDialog->btGenFingerprint, SIGNAL(clicked()), SLOT(generateFingerprint()));
connect(preferencesDialog->btGenFingerprint, &QAbstractButton::clicked, this, &OTRPreferences::generateFingerprint);
connect(preferencesDialog->cbKeys, SIGNAL(activated(int)), SLOT(showPrivFingerprint(int)));
connect(preferencesDialog->btVerify, SIGNAL(clicked()), SLOT(verifyFingerprint()));
connect(preferencesDialog->twSettings, SIGNAL(currentChanged(QWidget *)), SLOT(fillFingerprints()));
connect(preferencesDialog->btVerify, &QAbstractButton::clicked, this, &OTRPreferences::verifyFingerprint);
connect(preferencesDialog->twSettings, SIGNAL(currentChanged(int)), SLOT(fillFingerprints()));
connect(preferencesDialog->tbFingerprints, SIGNAL(currentCellChanged(int,int,int,int)), SLOT(updateButtons(int,int,int,int)));
connect(preferencesDialog->btForget, SIGNAL(clicked()), SLOT(forgetFingerprint()));
connect(preferencesDialog->btForget, &QAbstractButton::clicked, this, &OTRPreferences::forgetFingerprint);
connect(OtrlChatInterface::self(), SIGNAL(goneSecure(Kopete::ChatSession *,int)), this, SLOT(fillFingerprints()));
int index = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment