diff --git a/src/ExtendedTableWidget.cpp b/src/ExtendedTableWidget.cpp
index fae8d8be..7fb4116c 100644
--- a/src/ExtendedTableWidget.cpp
+++ b/src/ExtendedTableWidget.cpp
@@ -96,28 +96,6 @@ void ExtendedTableWidget::copy()
}
}
- // Check whether selection is rectangular
- QItemSelection rect(indices.first(), indices.last());
- bool correct = true;
-
- foreach (const QModelIndex& index, indices)
- if (!rect.contains(index)) {
- correct = false;
- break;
- }
-
- foreach (const QModelIndex& index, rect.indexes())
- if (!indices.contains(index)) {
- correct = false;
- break;
- }
-
- if (!correct) {
- QMessageBox::warning(this, QApplication::applicationName(),
- tr("This function cannot be used with multiple independent selections."));
- return;
- }
-
m_buffer.clear();
// If any of the cells contain binary data - we use inner buffer
diff --git a/src/MainWindow.ui b/src/MainWindow.ui
index 3de13cc2..c3d53921 100644
--- a/src/MainWindow.ui
+++ b/src/MainWindow.ui
@@ -198,6 +198,9 @@
Qt::CopyAction
+
+ QAbstractItemView::ContiguousSelection
+
true