Skip to content

Commit

Permalink
fixed a couple of string for linux, and added .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
ajoslin committed Jan 22, 2012
1 parent 7e57793 commit b846fe5
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions .gitignore
@@ -0,0 +1,7 @@
*.sublime-project
*.sublime-workspace
*.cxx
*.res
*.o
*.P
*.d
4 changes: 2 additions & 2 deletions src/view/LTPage_File.cpp
Expand Up @@ -52,7 +52,7 @@ void LTPage_File::onOpenFile(wxFileName fname)

void LTPage_File::onCloseFile()
{
wxFileName fname(wxString(currentFile->getPath()));
wxFileName fname(wxString::FromUTF8(currentFile->getPath()));
LTFrame::instance()->closeFile(fname);
}

Expand All @@ -70,6 +70,6 @@ void LTPage_File::setLabelError(wxString err)

wxFileName LTPage_File::getCurrentFileName()
{
wxFileName fn(wxString(currentFile->getPath()));
wxFileName fn(wxString::FromUTF8(currentFile->getPath()));
return fn;
}
3 changes: 2 additions & 1 deletion src/view/LTPage_Script.cpp
Expand Up @@ -51,7 +51,8 @@ LTPage_Script::LTPage_Script(wxWindow *parent)

void LTPage_Script::onOpenFileButtonPressed(wxCommandEvent& event)
{
system(wxT("\"")+wxString(currentFile->getPath())+wxT("\""));
wxString call=wxT("\"")+wxString::FromUTF8(currentFile->getPath())+wxT("\"");
system(call.mb_str().data());
}

void LTPage_Script::onPickBaseButtonPressed(wxCommandEvent &event)
Expand Down

0 comments on commit b846fe5

Please sign in to comment.