Commit f4a69e7b authored by Urs Fleisch's avatar Urs Fleisch
Browse files

Revert changes when opening new directory and discarding changes.

Check modification state when new directory is selected in directory
list.
parent cdb75792
......@@ -630,6 +630,7 @@ void Id3Form::dirSelected(const QModelIndex& index)
if (!dirPath.isEmpty()) {
m_dirListBox->setEntryToSelect(
dirPath.endsWith("..") ? index.parent() : QModelIndex());
theApp->updateCurrentSelection();
theApp->openDirectory(dirPath, true);
}
}
......
......@@ -1152,6 +1152,9 @@ bool Kid3App::saveModified()
break;
case No:
if (m_view->getFileList()->selectionModel())
m_view->getFileList()->selectionModel()->clearSelection();
slotFileRevert();
setModified(false);
completed=true;
break;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment