diff --git a/QtMeshViewer/Form Files/SettingsWindow.ui b/QtMeshViewer/Form Files/SettingsWindow.ui
index a916145..21b5341 100644
--- a/QtMeshViewer/Form Files/SettingsWindow.ui
+++ b/QtMeshViewer/Form Files/SettingsWindow.ui
@@ -489,9 +489,6 @@
General
- -
-
-
-
@@ -556,6 +553,9 @@
+ -
+
+
diff --git a/QtMeshViewer/Source/MainWindow.cpp b/QtMeshViewer/Source/MainWindow.cpp
index 508dfd0..52cd349 100644
--- a/QtMeshViewer/Source/MainWindow.cpp
+++ b/QtMeshViewer/Source/MainWindow.cpp
@@ -410,3 +410,4 @@ void MainWindow::setFileInfo(QString name, QVector* materials, int ver
m_infoWindow->setDetailText(QString(m_fileInfo.right(m_fileInfo.size() - m_fileInfo.indexOf("") - 8)));
}
+
diff --git a/QtMeshViewer/Source/SettingsWindow.cpp b/QtMeshViewer/Source/SettingsWindow.cpp
index 8e889f5..9f16dee 100644
--- a/QtMeshViewer/Source/SettingsWindow.cpp
+++ b/QtMeshViewer/Source/SettingsWindow.cpp
@@ -1,6 +1,8 @@
#include "..\Header\SettingsWindow.h"
#include "..\Header\SettingsManager.h"
#include
+#include
+
/////////////////////////////////////////////////////////////////////////
// constructor/destructor
@@ -195,12 +197,10 @@ void SettingsWindow::on_addItem_clicked()
QString dirName = QFileDialog::getExistingDirectory(this, tr("Open Directory"), "/home",
QFileDialog::ShowDirsOnly |
QFileDialog::DontResolveSymlinks);
-// ui->dirListView-> selectionModel()->
-// ui->dirListView->model()->insertRow(dirName) ; //->insertRow(dirName);
+ ui->dirListWidget->insertItem(0,dirName);
}
void SettingsWindow::on_removeItem_clicked()
{
- ui->dirListView->selectionModel()->selectedIndexes();
-// ui->dirListView->model()->removeRow(ui->dirListView->selectionModel()->selectedIndexes());
+ qDeleteAll(ui->dirListWidget->selectedItems());
}