Skip to content
Snippets Groups Projects
Commit 2d5a8335 authored by stefan's avatar stefan
Browse files

FileBrowser, default directory for Linux => examples

git-svn-id: https://dng.biozentrum.unibas.ch/svn/openstructure/trunk@2512 5a81b35b-ba03-0410-adc8-b2c5c5119f08
parent 88328120
No related branches found
No related tags found
No related merge requests found
......@@ -16,14 +16,12 @@
// along with this library; if not, write to the Free Software Foundation, Inc.,
// 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
//------------------------------------------------------------------------------
#include <QCoreApplication>
#include <QCursor>
#include <QVBoxLayout>
#include <QDesktopServices>
#include <QDir>
#include <QHeaderView>
#include <QFileInfo>
#include <QMessageBox>
#include <QApplication>
#include <QUrl>
#include <ost/platform.hh>
......@@ -82,6 +80,11 @@ FileBrowser::FileBrowser(QWidget* parent):
}
}
}
# else
QString example_path=path+"/share/openstructure/examples/";
if (QDir(example_path).exists()) {
path=example_path;
}
#endif
this->Init(path);
}
......
......@@ -55,6 +55,7 @@ private slots:
void LoadCurrentObject();
void LoadWithSystemEditor();
void LoadWithSourceViewer();
private:
void LoadObject(const QModelIndex& index);
void UpdateMenu(const QString& path);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment