X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.cpp;h=b126dd9c74ff36e4b02ede00cca2b6d6e747b9fa;hp=96786528d0554e3b4daeb0a4afa2398ee54c10f8;hb=HEAD;hpb=285215315e6f2420724532323a4b1bccae156cb1 diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index 96786528..84a3a849 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -1,5 +1,5 @@ /*************************************************************************** - * Copyright (C) 2005-2020 by the Quassel Project * + * Copyright (C) 2005-2022 by the Quassel Project * * devel@quassel-irc.org * * * * This program is free software; you can redistribute it and/or modify * @@ -809,7 +809,7 @@ void MainWin::changeActiveBufferView(int bufferViewId) void MainWin::showPasswordChangeDlg() { if (Client::isCoreFeatureEnabled(Quassel::Feature::PasswordChange)) { - PasswordChangeDlg{}.exec(); + PasswordChangeDlg{this}.exec(); } else { QMessageBox box(QMessageBox::Warning, @@ -918,7 +918,7 @@ void MainWin::hideCurrentBuffer() void MainWin::showNotificationsDlg() { - SettingsPageDlg{new NotificationsSettingsPage{}}.exec(); + SettingsPageDlg{new NotificationsSettingsPage{}, this}.exec(); } void MainWin::onConfigureNetworksTriggered() @@ -1355,7 +1355,7 @@ void MainWin::setDisconnectedState() void MainWin::userAuthenticationRequired(CoreAccount* account, bool* valid, const QString& errorMessage) { Q_UNUSED(errorMessage) - CoreConnectAuthDlg dlg(account); + CoreConnectAuthDlg dlg(account, this); *valid = (dlg.exec() == QDialog::Accepted); } @@ -1407,7 +1407,7 @@ void MainWin::handleSslErrors(const QSslSocket* socket, bool* accepted, bool* pe box.exec(); role = box.buttonRole(box.clickedButton()); if (role == QMessageBox::HelpRole) { - SslInfoDlg dlg(socket); + SslInfoDlg dlg(socket, this); dlg.exec(); } } while (role == QMessageBox::HelpRole); @@ -1432,7 +1432,7 @@ void MainWin::handleCoreConnectionError(const QString& error) void MainWin::showCoreConnectionDlg() { - CoreConnectDlg dlg; + CoreConnectDlg dlg{this}; if (dlg.exec() == QDialog::Accepted) { AccountId accId = dlg.selectedAccount(); if (accId.isValid()) @@ -1480,7 +1480,7 @@ void MainWin::showChannelList(NetworkId netId, const QString& channelFilters, bo void MainWin::showNetworkConfig(NetworkId netId) { - SettingsPageDlg dlg{new NetworksSettingsPage{}}; + SettingsPageDlg dlg{new NetworksSettingsPage{}, this}; if (netId.isValid()) qobject_cast(dlg.currentPage())->bufferList_Open(netId); dlg.exec(); @@ -1488,7 +1488,7 @@ void MainWin::showNetworkConfig(NetworkId netId) void MainWin::showIgnoreList(QString newRule) { - SettingsPageDlg dlg{new IgnoreListSettingsPage{}}; + SettingsPageDlg dlg{new IgnoreListSettingsPage{}, this}; // prepare config dialog for new rule if (!newRule.isEmpty()) qobject_cast(dlg.currentPage())->editIgnoreRule(newRule); @@ -1497,7 +1497,7 @@ void MainWin::showIgnoreList(QString newRule) void MainWin::showCoreInfoDlg() { - CoreInfoDlg{}.exec(); + CoreInfoDlg{this}.exec(); } void MainWin::showAwayLog() @@ -1695,7 +1695,7 @@ void MainWin::messagesInserted(const QModelIndex& parent, int start, int end) if (hasFocus && bufId == Client::bufferModel()->currentBuffer()) continue; - // only show notifications for higlights or queries + // only show notifications for highlights or queries if (bufType != BufferInfo::QueryBuffer && !(flags & Message::Highlight)) continue;