Fixed filename bug (linux); disabled hover buttons on welcome window (linux)

git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@193 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
twanvl
2007-01-31 20:38:31 +00:00
parent 2291fe4405
commit ed5ac758f9
2 changed files with 13 additions and 5 deletions
+3 -1
View File
@@ -58,7 +58,9 @@ void PackageManager::init() {
}
PackagedP PackageManager::openAny(const String& name) {
wxFileName fn(data_directory + _("/") + name);
wxFileName fn(
(wxFileName(name).IsRelative() ? data_directory + _("/") : wxString(wxEmptyString))
+ name);
fn.Normalize();
String filename = fn.GetFullPath();
// Is this package already loaded?