aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/resourceeditor
diff options
context:
space:
mode:
authorNikolai Kosjar <nikolai.kosjar@digia.com>2013-06-20 12:49:19 +0200
committerNikolai Kosjar <nikolai.kosjar@digia.com>2013-06-24 11:13:29 +0200
commit10ff6769acdd5375c947cbcebace19545eade145 (patch)
tree64bfcf3b04fdf873dd1804aec3c2f9fac97869a3 /src/plugins/resourceeditor
parenta0439779993d0a2c8f1c7213a2cfd108bcbfa515 (diff)
Core: Let IDocument also report failed file reload operations
Change-Id: I8fa02f2398f59306c49481316fdedf50a1c4e32f Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/resourceeditor')
-rw-r--r--src/plugins/resourceeditor/resourceeditorw.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/resourceeditor/resourceeditorw.cpp b/src/plugins/resourceeditor/resourceeditorw.cpp
index bbbf669923..1b49ad1e3c 100644
--- a/src/plugins/resourceeditor/resourceeditorw.cpp
+++ b/src/plugins/resourceeditor/resourceeditorw.cpp
@@ -259,9 +259,9 @@ bool ResourceEditorDocument::reload(QString *errorString, ReloadFlag flag, Chang
} else {
emit aboutToReload();
QString fn = m_parent->m_resourceEditor->fileName();
- if (!m_parent->open(errorString, fn, fn))
- return false;
- emit reloaded();
+ const bool success = m_parent->open(errorString, fn, fn);
+ emit reloadFinished(success);
+ return success;
}
return true;
}