set usage of the pager properly
authorThomas Zander <thomas.zander@trolltech.com>
Sat, 25 Jul 2009 05:30:33 +0000 (25 08:30 +0300)
committerThomas Zander <thomas.zander@trolltech.com>
Sat, 25 Jul 2009 05:30:33 +0000 (25 08:30 +0300)
src/commands/Pull.cpp
src/commands/Push.cpp

index a339e99..9a4d116 100644 (file)
@@ -101,6 +101,7 @@ AbstractCommand::ReturnCodes Pull::run()
                             + QLatin1String("` (") + repo.url() + QLatin1Char(')'));
             }
             Interview interview(cursor, QLatin1String("Shall I use this repository?"));
+            interview.setUsePager(shouldUsePager());
             if (!interview.start())
                 return Ok;
             Q_ASSERT(!cursor.selectedItems().isEmpty());
@@ -189,6 +190,7 @@ AbstractCommand::ReturnCodes Pull::run()
         foreach (const RemoteBranch &repo, newBranches)
             cursor.addDataItem(QLatin1String("  new branch: '") + repo.ref + QLatin1Char('`'));
         Interview interview(cursor, QLatin1String("Update this branch?"));
+        interview.setUsePager(shouldUsePager());
         if (!interview.start())
             return Ok;
         foreach (int selected, cursor.selectedItems()) {
index 590d88d..72b46d1 100644 (file)
@@ -83,6 +83,7 @@ AbstractCommand::ReturnCodes Push::run()
                             + QLatin1String("` (") + repo.url() + QLatin1Char(')'));
             }
             Interview interview(cursor, QLatin1String("Shall I use this repository?"));
+            interview.setUsePager(shouldUsePager());
             if (!interview.start())
                 return Ok;
             Q_ASSERT(!cursor.selectedItems().isEmpty());