Version: (using KDE 4.1.2) Installed from: Unspecified Linux Kdevplatform registers files it fails to open as 'opened'. Steps to reproduce: 1/ boot kdevelop 2/ open the filesystem toolview 3/ browse to some image file + open it 4/ this will now be shown in the documents toolview and saved to the rc on exit Below is a patch that fixes this. Probably it isn't enough to silently ignore this. At least a warning and maybe an option to open it with an external viewer? ------------------------------------------------------ Index: documentcontroller.cpp =================================================================== --- documentcontroller.cpp (revision 869725) +++ documentcontroller.cpp (working copy) @@ -346,6 +346,9 @@ d->documents[url] = idoc; } } + } else { + // no plugin handles this mimetype, bail out + return 0; } if ( !d->documents.contains(url) && Core::self()->partManagerInternal()->isTextType(mimeType)) d->documents[url] = new TextDocument(url, Core::self());
Created attachment 27936 [details] patch
This is something for the mailinglist. We need to decide wether we want to embedd kparts or not.