[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kdevelop-bugs
Subject:    [Bug 172941] New: DocumentController stores opened state for
From:       mbreugel <mbr.nxi () gmail ! com>
Date:       2008-10-16 10:19:41
Message-ID: bug-172941-40295 () http ! bugs ! kde ! org/
[Download RAW message or body]

http://bugs.kde.org/show_bug.cgi?id=172941

           Summary: DocumentController stores opened state for mimetypes it
                    can not handle
           Product: kdevplatform
           Version: unspecified
          Platform: Unlisted Binaries
        OS/Version: unspecified
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: shell
        AssignedTo: kdevelop-bugs@kdevelop.org
        ReportedBy: mbr.nxi@gmail.com


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());


-- 
Configure bugmail: http://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

_______________________________________________
KDevelop-bugs mailing list
KDevelop-bugs@kdevelop.org
https://barney.cs.uni-potsdam.de/mailman/listinfo/kdevelop-bugs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic