[aseprite] 55/250: Fix base::open_folder() in case paths are specified with non-standard slashes
Tobias Hansen
thansen at moszumanska.debian.org
Sun Dec 20 15:27:11 UTC 2015
This is an automated email from the git hooks/post-receive script.
thansen pushed a commit to branch master
in repository aseprite.
commit 83fe1396001dc7765af312b9dcbe65a06a38b4a1
Author: David Capello <davidcapello at gmail.com>
Date: Fri Sep 18 12:39:23 2015 -0300
Fix base::open_folder() in case paths are specified with non-standard slashes
---
src/base/launcher.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/base/launcher.cpp b/src/base/launcher.cpp
index c6a9b38..734902b 100644
--- a/src/base/launcher.cpp
+++ b/src/base/launcher.cpp
@@ -11,6 +11,7 @@
#include "base/exception.h"
#include "base/fs.h"
#include "base/launcher.h"
+#include "base/path.h"
#include "base/string.h"
#include <cstdlib>
@@ -90,8 +91,10 @@ bool open_file(const std::string& file)
return (ret == 0);
}
-bool open_folder(const std::string& file)
+bool open_folder(const std::string& _file)
{
+ std::string file = base::fix_path_separators(_file);
+
#ifdef _WIN32
int ret;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/aseprite.git
More information about the Pkg-games-commits
mailing list