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

List:       kde-commits
Subject:    [calligra/krita-sketch-rempt] krita/sketch/qml/components: Fix loading of recent files
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2012-09-01 7:18:59
Message-ID: 20120901071859.0940FA6094 () git ! kde ! org
[Download RAW message or body]

Git commit c0a72a7929d77dbc22209d307e679224a5e14e16 by Boudewijn Rempt.
Committed on 01/09/2012 at 09:17.
Pushed by rempt into branch 'krita-sketch-rempt'.

Fix loading of recent files

A string param was added to base.clicked to identify which button
was clicked so the file picker could be opened. However, there was
another base.clicked() that would open the recent file then the
main windows, and that didn't work anymore. Nobody noticed -- the
joy of dynamic languages, I guess.

M  +1    -1    krita/sketch/qml/components/RecentFilesList.qml

http://commits.kde.org/calligra/c0a72a7929d77dbc22209d307e679224a5e14e16

diff --git a/krita/sketch/qml/components/RecentFilesList.qml \
b/krita/sketch/qml/components/RecentFilesList.qml index 3869f7b..3840ac3 100644
--- a/krita/sketch/qml/components/RecentFilesList.qml
+++ b/krita/sketch/qml/components/RecentFilesList.qml
@@ -67,7 +67,7 @@ Item {
                 onClicked: {
                     recentImagesModel.addRecent(model.url);
                     Settings.currentFile = model.url;
-                    base.clicked();
+                    base.clicked("");
                 }
             }
 


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

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