Closes #504.
{"icontheme", tr("Override the system icon theme ('breeze' is recommended)."), tr("theme")},
{"qss", tr("Load a custom application stylesheet."), tr("file.qss")},
{"hidewindow", tr("Start the client minimized to the system tray.")},
+ {"account", tr("Account id to connect to on startup."), tr("account"), "0"},
};
}
void MainWin::doAutoConnect()
{
- if (!Client::coreConnection()->connectToCore()) {
+ int accountId = Quassel::optionValue("account").toInt();
+ if (!Client::coreConnection()->connectToCore(accountId)) {
// No autoconnect selected (or no accounts)
showCoreConnectionDlg();
}
EXPECT_EQ(formatDateTimeToOffsetISO(dateTime.toOffsetFromUtc(0)), QString("2006-01-02 14:04:05Z"));
EXPECT_EQ(formatDateTimeToOffsetISO(dateTime.toOffsetFromUtc(7200)), QString("2006-01-02 16:04:05+02:00"));
EXPECT_EQ(formatDateTimeToOffsetISO(dateTime.toTimeZone(QTimeZone{"UTC"})), QString("2006-01-02 14:04:05Z"));
-}
\ No newline at end of file
+}