diff --git a/CMakeLists.txt b/CMakeLists.txt
index d7549ac..ab99c49 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,6 @@
cmake_minimum_required (VERSION 3.2)
project (whyblocked
- VERSION 0.14.4
+ VERSION 0.14.5
LANGUAGES CXX
)
diff --git a/src/qt/mainwindow.cpp b/src/qt/mainwindow.cpp
index 2a2e244..9bfd6f0 100644
--- a/src/qt/mainwindow.cpp
+++ b/src/qt/mainwindow.cpp
@@ -196,8 +196,11 @@ void MainWindow::remove()
QItemSelectionModel *selection = tableview->selectionModel();
if (selection->hasSelection())
{
- for (auto &row : selection->selectedRows())
+ // I use this construct here because the number of selected rows
+ // decrease by 1 each iteration.
+ for (; selection->selectedRows().count() > 0;)
{
+ const QModelIndex row = selection->selectedRows().front();
const string user = row.data().toString().toStdString();
_database.remove(user);
_model->removeRow(row.row());
diff --git a/translations/whyblocked_de.ts b/translations/whyblocked_de.ts
index 3c05dc4..d0a3e06 100644
--- a/translations/whyblocked_de.ts
+++ b/translations/whyblocked_de.ts
@@ -198,7 +198,7 @@
-
+
Eintrag bearbeiten
@@ -219,18 +219,18 @@
-
+
Benutzer/Instanz
-
+
Blockiert/Gedämpft
-
+
Begründung
@@ -250,37 +250,37 @@
gedämpft
-
+
Ungültige Auswahl
-
+
Bitte nur 1 Eintrag zum bearbeiten auswählen.
-
+
Nichts ausgewählt
-
+
Bitte wähle Einträge aus, die gelöscht werden sollen.
-
+
Über Whyblocked
-
+
<p><b>Whyblocked</b> %1</p><p>Erinnert dich, warum du jemanden blockiertest.</p><p>Quelltext: <a href="https://schlomp.space/tastytea/whyblocked">https://schlomp.space/tastytea/whyblocked</a></p><p><small>Copyright © 2018 <a href="mailto:tastytea@tastytea.de">tastytea</a>.<br>Lizenz GPLv3: <a href="https://www.gnu.org/licenses/gpl-3.0.html">GNU GPL version 3</a>.<br>Für dieses Programm besteht KEINERLEI GARANTIE. Dies ist freie Software, die Sie unter bestimmten Bedingungen weitergeben dürfen.</small></p>
-
+
Belege:
diff --git a/translations/whyblocked_en.ts b/translations/whyblocked_en.ts
index 44c3e96..60c0cfc 100644
--- a/translations/whyblocked_en.ts
+++ b/translations/whyblocked_en.ts
@@ -198,7 +198,7 @@
-
+
@@ -219,18 +219,18 @@
-
+
-
+
-
+
@@ -250,37 +250,37 @@
-
+
-
+
-
+
-
+
-
+
-
+
-
+