diff options
Diffstat (limited to 'attachments.cpp')
-rw-r--r-- | attachments.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/attachments.cpp b/attachments.cpp index dbb2fca..abe1b71 100644 --- a/attachments.cpp +++ b/attachments.cpp @@ -95,6 +95,10 @@ void Attachments::saveFile() QModelIndexList indexes = tableView->selectionModel()->selection().indexes(); + if (indexes.size() < 1) { + return; + } + // only singe-selection possible now: TODO: foreach MimePart mp = table->getMimePart(indexes.at(0).row()); QString filename = mp.header.getParam("Content-Type", "name"); |