fix opening file missing in project - issue #24

This commit is contained in:
Vadim Lopatin 2015-02-13 10:51:21 +03:00
parent b597326363
commit 2fe2506eca
1 changed files with 6 additions and 3 deletions

View File

@ -111,13 +111,16 @@ class IDEFrame : AppFrame {
}
bool openSourceFile(string filename, ProjectSourceFile file = null, bool activate = true) {
if (!file && !filename)
return false;
if (!file)
file = _wsPanel.findSourceFileItem(filename, false);
if(!file)
return false;
//if(!file)
// return false;
filename = file.filename;
if (file)
filename = file.filename;
Log.d("openSourceFile ", filename);
int index = _tabs.tabIndex(filename);