From f5059d9a21063020a0c1bd4a8bc99cdd56bb7796 Mon Sep 17 00:00:00 2001 From: Thomas Zander Date: Sat, 25 Jul 2009 08:30:33 +0300 Subject: [PATCH] set usage of the pager properly --- src/commands/Pull.cpp | 2 ++ src/commands/Push.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/src/commands/Pull.cpp b/src/commands/Pull.cpp index a339e99..9a4d116 100644 --- a/src/commands/Pull.cpp +++ b/src/commands/Pull.cpp @@ -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()) { diff --git a/src/commands/Push.cpp b/src/commands/Push.cpp index 590d88d..72b46d1 100644 --- a/src/commands/Push.cpp +++ b/src/commands/Push.cpp @@ -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()); -- 2.11.4.GIT