summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@trolltech.com>2009-06-03 12:28:55 (GMT)
committerJoerg Bornemann <joerg.bornemann@trolltech.com>2009-06-03 13:44:54 (GMT)
commit11e77b1e47d527a2c4bca6c72d4597bfd8b8a1c3 (patch)
treee41a7ae1ddd8b9a0cac59b292b78291817a35286
parent826b2ec2067e725561db2892dd432c01f1d36bc7 (diff)
downloadQt-11e77b1e47d527a2c4bca6c72d4597bfd8b8a1c3.zip
Qt-11e77b1e47d527a2c4bca6c72d4597bfd8b8a1c3.tar.gz
Qt-11e77b1e47d527a2c4bca6c72d4597bfd8b8a1c3.tar.bz2
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
-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 ebde770..7aded07 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);
}