Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit b2330e36 authored by Laurent Montel's avatar Laurent Montel 😁

Clean up

parent d35e899e
......@@ -103,6 +103,7 @@ Dialog::Dialog(QWidget *parent)
Page *page = qobject_cast<Page *>(currentPage()->widget());
page->enterPageNext();
//TODO ? necessary ???
Q_EMIT page->pageEnteredNext();
connect(button(QDialogButtonBox::Cancel), &QPushButton::clicked, this, &Dialog::accept);
KHelpMenu *helpMenu = new KHelpMenu(this, KAboutData::applicationData(), true);
......
......@@ -176,17 +176,14 @@ private:
QVector< Server > mSmtpServers;
QVector< identity > mIdentities;
int mDefaultIdentity;
int mDefaultIdentity = -1;
Ispdb::searchServerType mServerType;
bool mStart;
bool mStart = true;
};
struct Server {
Server()
{
port = -1;
authentication = Ispdb::Plain;
socketType = Ispdb::None;
}
bool isValid() const
......@@ -194,11 +191,11 @@ struct Server {
return port != -1;
}
Ispdb::authType authentication;
Ispdb::socketType socketType;
Ispdb::authType authentication = Ispdb::Plain;
Ispdb::socketType socketType = Ispdb::None;
QString hostname;
QString username;
int port;
int port = -1;
};
struct identity {
......
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