diff mainwindow.cpp @ 194:5ca49523892f

* Fixes to dialog return code handling
author Chris Cannam
date Mon, 20 Dec 2010 22:39:45 +0000
parents ef5feb0d648f
children ff0d76dcb3b8
line wrap: on
line diff
--- a/mainwindow.cpp	Mon Dec 20 22:37:42 2010 +0000
+++ b/mainwindow.cpp	Mon Dec 20 22:39:45 2010 +0000
@@ -772,7 +772,7 @@
          format3(tr("Confirm pull from remote repository"),
                  tr("You are about to pull changes from the following remote repository:"),
                  remoteRepoPath),
-         tr("Pull")) == QMessageBox::Ok) {
+         tr("Pull"))) {
 
         QStringList params;
         params << "pull" << remoteRepoPath;
@@ -787,7 +787,7 @@
          format3(tr("Confirm push to remote repository"),
                  tr("You are about to push your changes to the following remote repository:"),
                  remoteRepoPath),
-         tr("Push")) == QMessageBox::Ok) {
+         tr("Push"))) {
 
         QStringList params;
         params << "push" << "--new-branch" << remoteRepoPath;