diff --git a/src/ExtendedTableWidget.cpp b/src/ExtendedTableWidget.cpp
index f414096b..8f75f2ad 100644
--- a/src/ExtendedTableWidget.cpp
+++ b/src/ExtendedTableWidget.cpp
@@ -225,7 +225,6 @@ void ExtendedTableWidget::copy(const bool withHeaders)
// If we got here, there are multiple selected cells, none of which contains binary data.
// In this case, write a table both in HTML and text formats to clipboard
- QModelIndex first = indices.first();
QString result;
QString htmlResult = "