diff options
author | Kai Köhne <kai.koehne@qt.io> | 2021-02-17 16:06:04 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2021-02-19 09:21:26 +0000 |
commit | dd5b8c842c1df7c68861505d762ee388925a36a0 (patch) | |
tree | 1382820f782934acae3213063eff0f06798921ac | |
parent | fa43144e9d97c8aa4888067c20c6c35f78baab96 (diff) | |
download | qttools-dd5b8c842c1df7c68861505d762ee388925a36a0.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.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/linguist/linguist/mainwindow.cpp b/src/linguist/linguist/mainwindow.cpp index dca3aee6d..7b3791947 100644 --- a/src/linguist/linguist/mainwindow.cpp +++ b/src/linguist/linguist/mainwindow.cpp @@ -1305,9 +1305,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; } |