X-Git-Url: https://git.quassel-irc.org/?p=quassel.git;a=blobdiff_plain;f=src%2Fqtui%2Fmainwin.cpp;h=b4461305c0077a038a9b495e44151eef5949fde3;hp=acfe79fa4aa82752ed858673652956d003a2c320;hb=4e51500401db3c85dbe5e92e5e5c15b6e3c87787;hpb=183d6375f0baf6b5dac1a470f59a748f48dde711 diff --git a/src/qtui/mainwin.cpp b/src/qtui/mainwin.cpp index acfe79fa..b4461305 100644 --- a/src/qtui/mainwin.cpp +++ b/src/qtui/mainwin.cpp @@ -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,17 +918,17 @@ void MainWin::hideCurrentBuffer() void MainWin::showNotificationsDlg() { - SettingsPageDlg{new NotificationsSettingsPage{}}.exec(); + SettingsPageDlg{new NotificationsSettingsPage{}, this}.exec(); } void MainWin::onConfigureNetworksTriggered() { - SettingsPageDlg{new NetworksSettingsPage{}}.exec(); + SettingsPageDlg{new NetworksSettingsPage{}, this}.exec(); } void MainWin::onConfigureViewsTriggered() { - SettingsPageDlg{new BufferViewSettingsPage{}}.exec(); + SettingsPageDlg{new BufferViewSettingsPage{}, this}.exec(); } void MainWin::onLockLayoutToggled(bool lock) @@ -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() @@ -1519,7 +1519,7 @@ void MainWin::awayLogDestroyed() void MainWin::showSettingsDlg() { - auto dlg = new SettingsDlg(); + auto dlg = new SettingsDlg(this); // Category: Interface dlg->registerSettingsPage(new AppearanceSettingsPage(dlg)); @@ -1564,7 +1564,7 @@ void MainWin::showSettingsDlg() void MainWin::showAboutDlg() { - AboutDlg{}.exec(); + AboutDlg{this}.exec(); } void MainWin::showShortcutsDlg() @@ -1576,7 +1576,7 @@ void MainWin::showShortcutsDlg() } dlg.configure(true); #else - SettingsPageDlg{new ShortcutsSettingsPage{QtUi::actionCollections()}}.exec(); + SettingsPageDlg{new ShortcutsSettingsPage{QtUi::actionCollections()}, this}.exec(); #endif }