I'm confirming this still happens in SVN HEAD Rev1471.
I want to note that this doesn't happen in RC2, it only displays the expected messagebox:
"ERROR: Could not open file '...'.
No handler registered for this type of file."
Submited the bug report (http://sourceforge.net/tracker/index.php?func=detail&aid=1376155&group_id=126998&atid=707416).
It works fine here.
According to your bug-report, the backtrace shows:
MessageManager::DebugLogError(char const*, ...)
src/sdk/messagemanager.cpp:232
ProjectManager::DoOpenFile(ProjectFile*, wxString const&)
src/sdk/projectmanager.cpp:1233
ProjectManager::DoOpenSelectedFile()
src/sdk/projectmanager.cpp:1250
Line 1250 is blank.
Line 1233 does *not* call MessageManager::DebugLogError().
The code relevant to MIME handling is at line 1241:
cbMimePlugin* plugin = Manager::Get()->GetPluginManager()->GetMIMEHandlerForFile(filename);
if (!plugin || plugin->OpenFile(filename) != 0) // plugin->OpenFile() returns -1 if you press Cancel
{
wxString msg;
msg.Printf(_("Could not open file '%s'.\nNo handler registered for this type of file."), filename.c_str());
Manager::Get()->GetMessageManager()->DebugLogError(msg);
}
As you can clearly see, your backtrace has nothing to do with the current HEAD. And I cannot reproduce it because, as you also see, the code is "clean" i.e. has NULL pointer checks etc...
As said above, it works fine here. Make sure you 're using HEAD and not a stickied revision...