diff options
Diffstat (limited to 'src/plugins/cpaster/protocol.cpp')
-rw-r--r-- | src/plugins/cpaster/protocol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/cpaster/protocol.cpp b/src/plugins/cpaster/protocol.cpp index b2b1e73792..b2ffc75b46 100644 --- a/src/plugins/cpaster/protocol.cpp +++ b/src/plugins/cpaster/protocol.cpp @@ -159,7 +159,7 @@ bool Protocol::showConfigurationError(const Protocol *p, showConfig = false; if (!parent) - parent = Core::ICore::mainWindow(); + parent = Core::ICore::dialogParent(); const QString title = tr("%1 - Configuration Error").arg(p->name()); QMessageBox mb(QMessageBox::Warning, title, message, QMessageBox::Cancel, parent); QPushButton *settingsButton = nullptr; @@ -220,7 +220,7 @@ bool NetworkProtocol::httpStatus(QString url, QString *errorMessage, bool useHtt tr("Checking connection"), tr("Connecting to %1...").arg(url), QMessageBox::Cancel, - Core::ICore::mainWindow()); + Core::ICore::dialogParent()); connect(reply.data(), &QNetworkReply::finished, &box, &QWidget::close); QApplication::setOverrideCursor(Qt::WaitCursor); box.exec(); |