Bug 111757 - "Open recent" list doesn't reorder when a file is opened
Summary: "Open recent" list doesn't reorder when a file is opened
Status: RESOLVED FIXED
Alias: None
Product: umbrello
Classification: Applications
Component: general (show other bugs)
Version: 1.4.2
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: Umbrello Development Group
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-30 12:28 UTC by greatbunzinni
Modified: 2006-09-10 14:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Patch (476 bytes, patch)
2006-09-09 21:35 UTC, Vincent Ricard
Details

Note You need to log in before you can comment on or make changes to this bug.
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);