Revision: 7295
http://svn.sourceforge.net/mahogany/?rev=7295&view=rev
Author: vadz
Date: 2007-07-12 14:57:48 -0700 (Thu, 12 Jul 2007)
Log Message:
-----------
test whether we have the extension before calling
wxMimeTypesManager::GetFileTypeFromExtension()
Modified Paths:
--------------
trunk/M/src/gui/wxIconManager.cpp
Modified: trunk/M/src/gui/wxIconManager.cpp
===================================================================
--- trunk/M/src/gui/wxIconManager.cpp 2007-07-12 13:30:51 UTC (rev 7294)
+++ trunk/M/src/gui/wxIconManager.cpp 2007-07-12 21:57:48 UTC (rev 7295)
@@ -641,7 +641,7 @@
// use the system icons by default
wxMimeTypesManager& mimeManager = mApplication->GetMimeManager();
wxFileType *fileType = mimeManager.GetFileTypeFromMimeType(type);
- if ( !fileType )
+ if ( !fileType && !ext.empty() )
{
fileType = mimeManager.GetFileTypeFromExtension(ext);
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Mahogany-cvsupdates mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mahogany-cvsupdates