This is an automated email from the git hooks/post-receive script.

thansen pushed a commit to branch master
in repository aseprite.

commit 4be68ab5f0a7d7b689529d03227cc6b2b99315ed
Author: David Capello <[email protected]>
Date:   Wed Apr 20 10:22:01 2016 -0300

    Default folder for new files must be the latest used folder (fix #1068)
    
    To behave in this way, the open/save dialog must receive a document
    filename with an empty path.
---
 src/doc/document.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/doc/document.cpp b/src/doc/document.cpp
index e41ed29..4eae690 100644
--- a/src/doc/document.cpp
+++ b/src/doc/document.cpp
@@ -64,7 +64,12 @@ std::string Document::name() const
 
 void Document::setFilename(const std::string& filename)
 {
-  m_filename = base::normalize_path(filename);
+  // Normalize the path (if the filename has a path)
+  if (!base::get_file_path(filename).empty())
+    m_filename = base::normalize_path(filename);
+  else
+    m_filename = filename;
+
   notifyObservers(&DocumentObserver::onFileNameChanged, this);
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on 
/srv/git.debian.org/git/pkg-games/aseprite.git

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to