Fix possible crashes. Closes #1814.

This commit is contained in:
sledgehammer999
2014-07-14 22:00:40 +03:00
parent bf173d894c
commit b63915f10a
2 changed files with 4 additions and 1 deletions

View File

@@ -525,6 +525,8 @@ void PropertiesWidget::renameSelectedFile() {
if (selectedIndexes.size() != 1)
return;
const QModelIndex index = selectedIndexes.first();
if (!index.isValid())
return;
// Ask for new name
bool ok;
QString new_name_last = AutoExpandableDialog::getText(this, tr("Rename the file"),