Bug 111757

Summary: "Open recent" list doesn't reorder when a file is opened
Product: [Applications] umbrello Reporter: greatbunzinni
Component: generalAssignee: Umbrello Development Group <umbrello-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 1.4.2   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Patch

Description greatbunzinni 2005-08-30 12:28:18 UTC
Version:           1.4.2 (using KDE KDE 3.4.2)

When a file which is in the "open recent" list is opened, the order of that list isn't updated.
Comment 1 Vincent Ricard 2006-09-09 21:35:29 UTC
Created attachment 17686 [details]
Patch
Comment 2 Vincent Ricard 2006-09-09 21:38:04 UTC
i forgot to mention that this patch should be applied on the branch 3.5. (but it should be ok for the trunk too).
Comment 3 Oliver Kellogg 2006-09-10 14:24:51 UTC
SVN commit 582767 by okellogg:

BUG:111757 - slotFileOpenRecent(): Patch from Vincent Ricard adds missing addURL() call.

 M  +1 -0      ChangeLog  
 M  +2 -0      umbrello/uml.cpp  


--- branches/KDE/3.5/kdesdk/umbrello/ChangeLog #582766:582767
@@ -5,6 +5,7 @@
 * Bugs/wishes from http://bugs.kde.org:
 * "role A properties" should give class name (69244)
 * Sharing designs, Folders, 3rd Party imports (87252, reimplementation)
+* "Open recent" list doesn't reorder when a file is opened (111757)
 * Properties menu: move to top/bottom buttons (126467)
 * Java import - importing interfaces - absent visibility treated as package
   instead of public (131327)
--- branches/KDE/3.5/kdesdk/umbrello/umbrello/uml.cpp #582766:582767
@@ -720,6 +720,8 @@
         if(!m_doc->openDocument(url)) {
             fileOpenRecent->removeURL(url);
             fileOpenRecent->setCurrentItem( -1 );
+        } else {
+            fileOpenRecent->addURL(url);
         }
         enablePrint(true);
         setCaption(m_doc->URL().fileName(), false);