diff --git a/io/config.cpp b/io/config.cpp
index bd0882f68..2ecb744ba 100644
--- a/io/config.cpp
+++ b/io/config.cpp
@@ -32,7 +32,8 @@ Config::Config()
autoscroll(AUTOSCROLL_PAGE_SCROLL),
audio_rate(48000),
fast_seeking(false),
- hover_focus(false)
+ hover_focus(false),
+ project_view_type(PROJECT_VIEW_TREE)
{}
void Config::load(QString path) {
@@ -115,6 +116,9 @@ void Config::load(QString path) {
} else if (stream.name() == "HoverFocus") {
stream.readNext();
hover_focus = (stream.text() == "1");
+ } else if (stream.name() == "ProjectViewType") {
+ stream.readNext();
+ project_view_type = stream.text().toInt();
}
}
}
@@ -163,6 +167,7 @@ void Config::save(QString path) {
stream.writeTextElement("AudioRate", QString::number(audio_rate));
stream.writeTextElement("FastSeeking", QString::number(fast_seeking));
stream.writeTextElement("HoverFocus", QString::number(hover_focus));
+ stream.writeTextElement("ProjectViewType", QString::number(project_view_type));
stream.writeEndElement(); // configuration
stream.writeEndDocument(); // doc
diff --git a/io/config.h b/io/config.h
index 4092204ff..4972c9dd3 100644
--- a/io/config.h
+++ b/io/config.h
@@ -18,6 +18,9 @@
#define AUTOSCROLL_PAGE_SCROLL 1
#define AUTOSCROLL_SMOOTH_SCROLL 2
+#define PROJECT_VIEW_TREE 0
+#define PROJECT_VIEW_ICON 1
+
struct Config {
Config();
bool saved_layout;
@@ -44,6 +47,7 @@ struct Config {
int audio_rate;
bool fast_seeking;
bool hover_focus;
+ int project_view_type;
void load(QString path);
void save(QString path);
diff --git a/mainwindow.cpp b/mainwindow.cpp
index 404a6dc9b..ee01aa846 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -439,7 +439,7 @@ void MainWindow::new_project() {
panel_project->new_project();
updateTitle("");
update_ui(false);
- panel_project->source_table->update();
+ panel_project->tree_view->update();
}
}
diff --git a/mainwindow.ui b/mainwindow.ui
index 61cc110c8..6533a2453 100644
--- a/mainwindow.ui
+++ b/mainwindow.ui
@@ -33,7 +33,7 @@
0
0
653
- 25
+ 16