diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/mainwindow.cpp | 2 | ||||
-rw-r--r-- | src/networkaccessmanager.cpp | 5 |
2 files changed, 3 insertions, 4 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3ebd3742..4f41652e 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -572,7 +572,7 @@ void MainWindow::printRequested(QWebFrame *frame) QPrinter printer; QPointer<QPrintDialog> dialog = KdePrint::createPrintDialog(&printer, this); - if (dialog->exec() == QDialog::Accepted) + if (dialog->exec() == KDialog::Ok) { frame->print(&printer); } diff --git a/src/networkaccessmanager.cpp b/src/networkaccessmanager.cpp index 6f0e2a3e..cbf263b6 100644 --- a/src/networkaccessmanager.cpp +++ b/src/networkaccessmanager.cpp @@ -41,7 +41,6 @@ // Qt Includes #include <QtCore/QPointer> -#include <QtGui/QDialog> #include <QtGui/QStyle> #include <QtGui/QTextDocument> @@ -118,7 +117,7 @@ void NetworkAccessManager::authenticationRequired(QNetworkReply *reply, QAuthent passwordWidget.introLabel->setText(introMessage); passwordWidget.introLabel->setWordWrap(true); - if (dialog->exec() == QDialog::Accepted) + if (dialog->exec() == KDialog::Ok) { auth->setUser(passwordWidget.userNameLineEdit->text()); auth->setPassword(passwordWidget.passwordLineEdit->text()); @@ -147,7 +146,7 @@ void NetworkAccessManager::proxyAuthenticationRequired(const QNetworkProxy &prox proxyWdg.introLabel->setText(introMessage); proxyWdg.introLabel->setWordWrap(true); - if (dialog->exec() == QDialog::Accepted) + if (dialog->exec() == KDialog::Ok) { auth->setUser(proxyWdg.userNameLineEdit->text()); auth->setPassword(proxyWdg.passwordLineEdit->text()); |