changed the external viewer definition dialogs

This commit is contained in:
Jean-Francois Dockes
2013-02-25 16:23:29 +01:00
parent 5419665741
commit 628010f7dc
8 changed files with 217 additions and 158 deletions
+7 -1
View File
@@ -868,7 +868,13 @@ bool RclConfig::setMimeViewerDef(const string& mt, const string& def)
{
if (mimeview == 0)
return false;
if (!mimeview->set(mt, def, "view")) {
bool status;
if (!def.empty())
status = mimeview->set(mt, def, "view");
else
status = mimeview->erase(mt, "view");
if (!status) {
m_reason = string("RclConfig:: cant set value. Readonly?");
return false;
}