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

List:       kde-commits
Subject:    [calligra] krita/sketch/qml: sketch: Make the open page open when we have a new image
From:       Arjen Hiemstra <ahiemstra () heimr ! nl>
Date:       2014-04-01 10:17:11
Message-ID: E1WUvkl-0001J7-HJ () scm ! kde ! org
[Download RAW message or body]

Git commit d987420d5cdb26e8c84212a5f0fcc2dca06491cc by Arjen Hiemstra.
Committed on 01/04/2014 at 10:12.
Pushed by ahiemstra into branch 'master'.

sketch: Make the open page open when we have a new image

"file" can be empty to indicate the open button was clicked and when we
have a new image "sketchView.file" will also return "" so we end up
bailing out before opening the open page.

M  +1    -1    krita/sketch/qml/MainPage.qml

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

diff --git a/krita/sketch/qml/MainPage.qml b/krita/sketch/qml/MainPage.qml
index 9207ec9..ac2b7d9 100644
--- a/krita/sketch/qml/MainPage.qml
+++ b/krita/sketch/qml/MainPage.qml
@@ -320,7 +320,7 @@ Page {
         }
 
         function beginOpenFile(file) {
-            if(file === sketchView.file)
+            if(!Settings.temporaryFile && file === sketchView.file)
                 return;
 
             if(file !== "") {
[prev in list] [next in list] [prev in thread] [next in thread] 

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