Skip to content
Snippets Groups Projects
Commit 53e88f5b authored by juergen's avatar juergen
Browse files

set standard startup dir to example instead of example/entity

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2474 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 53d7e822
No related branches found
No related tags found
No related merge requests found
...@@ -65,13 +65,13 @@ FileBrowser::FileBrowser(QWidget* parent): ...@@ -65,13 +65,13 @@ FileBrowser::FileBrowser(QWidget* parent):
dir.cdUp(); dir.cdUp();
dir.cdUp(); dir.cdUp();
path=dir.path(); path=dir.path();
QString example_path=path+"/share/openstructure/examples/entity"; QString example_path=path+"/share/openstructure/examples/";
if (QDir(example_path).exists()) { if (QDir(example_path).exists()) {
path=example_path; path=example_path;
} }
# elif defined(__APPLE__) # elif defined(__APPLE__)
if (path.contains("DNG.app") || path=="/") { if (path.contains("DNG.app") || path=="/") {
QDir dir(QCoreApplication::applicationDirPath()); QString example_path="/Applications/OpenStructure/Examples/";
dir.cdUp(); dir.cdUp();
QString example_path=dir.path()+"/examples"; QString example_path=dir.path()+"/examples";
if (QDir(example_path).exists()) { if (QDir(example_path).exists()) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment