summaryrefslogtreecommitdiffstats
path: root/examples/network/http
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-06-03 14:28:55 +0200
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-06-03 15:44:54 +0200
commit11e77b1e47d527a2c4bca6c72d4597bfd8b8a1c3 (patch)
treee41a7ae1ddd8b9a0cac59b292b78291817a35286 /examples/network/http
parent826b2ec2067e725561db2892dd432c01f1d36bc7 (diff)
use a yes/no message box for a yes/no question in http example
Using a OK/Cancel message box is weird for a yes/no question, esp. on a Windows CE device where such a message box doesn't have real push buttons but must be OK'ed / cancelled via system buttons in the title bar. Task-number: 255112 Reviewed-by: thartman
Diffstat (limited to 'examples/network/http')
-rw-r--r--examples/network/http/httpwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/network/http/httpwindow.cpp b/examples/network/http/httpwindow.cpp
index ebde7703aa..7aded070cb 100644
--- a/examples/network/http/httpwindow.cpp
+++ b/examples/network/http/httpwindow.cpp
@@ -116,8 +116,8 @@ void HttpWindow::downloadFile()
if (QMessageBox::question(this, tr("HTTP"),
tr("There already exists a file called %1 in "
"the current directory. Overwrite?").arg(fileName),
- QMessageBox::Ok|QMessageBox::Cancel, QMessageBox::Cancel)
- == QMessageBox::Cancel)
+ QMessageBox::Yes|QMessageBox::No, QMessageBox::No)
+ == QMessageBox::No)
return;
QFile::remove(fileName);
}