diff --git a/src/ExtendedTableWidget.cpp b/src/ExtendedTableWidget.cpp index 64583534..f5d400f1 100644 --- a/src/ExtendedTableWidget.cpp +++ b/src/ExtendedTableWidget.cpp @@ -24,7 +24,12 @@ void ExtendedTableWidget::copy() // Abort if there's nothing to copy if(indices.size() == 0) + { return; + } else if(indices.size() == 1) { + qApp->clipboard()->setText(indices.front().data().toString()); + return; + } // Sort the items by row, then by column qSort(indices);