mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-11-10 16:09:09 +00:00
Fix a crash if a table widget gets a copy shortcut with no selection
This commit is contained in:
1 file changed
+3
@@ -101,6 +101,9 @@ void RDTableWidget::copySelection()
|
||||
{
|
||||
QList<QTableWidgetItem *> items = selectedItems();
|
||||
|
||||
if(items.empty())
|
||||
return;
|
||||
|
||||
std::sort(items.begin(), items.end(), [this](QTableWidgetItem *a, QTableWidgetItem *b) {
|
||||
if(row(a) != row(b))
|
||||
return row(a) < row(b);
|
||||
|
||||
Reference in new issue
Block a user