Patch #1924 2007-03-15 14:51

pauliusz

Patch for Bug #9796
Download
1924-Patch_for_Bug.patch (861 bytes)
Category
Application::Bugfix
Status
Accepted
Close date
2007-03-27 10:50
Assigned to
 
Index: src/src/main.cpp
===================================================================
--- src/src/main.cpp    (revision 3704)
+++ src/src/main.cpp    (working copy)
@@ -1373,8 +1373,14 @@
         default:
         {
             cbMimePlugin* plugin = Manager::Get()->GetPluginManager()->GetMIMEHandlerForFile(filename);
-            if (plugin && plugin->OpenFile(filename) == 0)
+            // warn user that "Files extension handler" is disabled
+            if (!plugin)
             {
+                cbMessageBox(_("Could not open file ") + filename + _(",\nbecause \"Files extention handler\" plugin is disabled."), _("Error"), wxICON_ERROR);
+                return false;
+            }
+            if (plugin->OpenFile(filename) == 0)
+            {
                 AddToRecentFilesHistory(filename);
                 return true;
             }
mandrav 2007-03-27 10:50

Patch applied.