summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKai Köhne <kai.koehne@qt.io>2021-02-17 16:06:04 +0100
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-02-19 08:21:26 +0000
commit09c28ca679169dc65014aef06461617de9d8fa1a (patch)
treec346522547d5f40ef605a0c4d880351cf951fb1f
parentb03f4c8fbb2b3bda1b4b10b928c612d9d628d340 (diff)
downloadqttools-09c28ca679169dc65014aef06461617de9d8fa1a.tar.gz
Fix redeclared variable name
Pointed out by static analysis: https://www.viva64.com/en/amp/b/0801/ Amends 33a846a4d36e , which in turn fixed a static analysis issue :) Change-Id: I0d846a4d9287949241d6be034d294597035176bc Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io> Reviewed-by: Paul Wicking <paul.wicking@qt.io> (cherry picked from commit 3bb59ef19323062b785be4dca99e07836e601648) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
-rw-r--r--src/linguist/linguist/mainwindow.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/linguist/linguist/mainwindow.cpp b/src/linguist/linguist/mainwindow.cpp
index 30d3acea0..63e4247ef 100644
--- a/src/linguist/linguist/mainwindow.cpp
+++ b/src/linguist/linguist/mainwindow.cpp
@@ -1310,9 +1310,9 @@ void MainWindow::addToPhraseBook()
return;
} else {
bool okPressed = false;
- QString selectedPhraseBook = QInputDialog::getItem(this, tr("Add to phrase book"),
- tr("Select phrase book to add to"),
- phraseBookList, 0, false, &okPressed);
+ selectedPhraseBook = QInputDialog::getItem(this, tr("Add to phrase book"),
+ tr("Select phrase book to add to"),
+ phraseBookList, 0, false, &okPressed);
if (!okPressed)
return;
}