Commit f6e94f0a authored by Christian Kandeler's avatar Christian Kandeler
Browse files

BinEditor: Make saving via saveModifiedFiles() behave correctly.

parent a7187bd9
......@@ -193,10 +193,12 @@ public:
virtual QString mimeType() const { return m_mimeType; }
bool save(const QString &fileName = QString()) {
if (m_editor->save(m_fileName, fileName)) {
m_fileName = fileName;
const QString fileNameToUse
= fileName.isEmpty() ? m_fileName : fileName;
if (m_editor->save(m_fileName, fileNameToUse)) {
m_fileName = fileNameToUse;
m_editor->editorInterface()->
setDisplayName(QFileInfo(fileName).fileName());
setDisplayName(QFileInfo(fileNameToUse).fileName());
emit changed();
return true;
} else {
......
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