Qt Buildfix.

This commit is contained in:
Sacha committed 2013-06-28 03:40:45 +10:00
1 parent 8f163301eb
commit 217e6482eb
2 files changed
+5 -3

No files matched your search

+3 -3
View File
@@ -142,7 +142,7 @@ void PathBrowser::SetPath(const std::string &path) {
for (size_t i = 0; i < path_.size(); i++) {
if (path_[i] == '\\') path_[i] = '/';
}
if (!path_.size() || (path_.back() != '/'))
if (!path_.size() || (path_[path_.size() - 1] != '/'))
path_ += "/";
}
@@ -191,7 +191,7 @@ void PathBrowser::Navigate(const std::string &path) {
path_ = path;
else
path_ = path_ + path;
if (path_.back() != '/')
if (path_[path_.size() - 1] != '/')
path_ += "/";
}
}
@@ -372,4 +372,4 @@ UI::EventReturn MainScreen::OnCredits(UI::EventParams &e) {
UI::EventReturn MainScreen::OnSupport(UI::EventParams &e) {
return UI::EVENT_DONE;
}
}