summaryrefslogtreecommitdiffstats
path: root/mainwindow.cpp
diff options
context:
space:
mode:
authorAnne Jan Brouwer <annejan@noprotocol.com>2015-05-18 09:44:16 +0200
committerAnne Jan Brouwer <annejan@noprotocol.com>2015-05-18 09:44:16 +0200
commit01b965274469857017aca63f53cb70bbb22c077a (patch)
tree23dfa5cb73067df156db5ee173cf44ecad4066d3 /mainwindow.cpp
parent98362942cc8ba13effa9b2ea8edac22a42daad40 (diff)
Revert "update paths"
Diffstat (limited to 'mainwindow.cpp')
-rw-r--r--mainwindow.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index d7e5bb16..085491ff 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -42,7 +42,6 @@ MainWindow::MainWindow(QWidget *parent) :
MainWindow::~MainWindow()
{
#ifdef Q_OS_WIN
-}
if (useWebDav) WNetCancelConnection2A(passStore.toUtf8().constData(), 0, 1);
#else
if (fusedav.state() == QProcess::Running) {
@@ -179,8 +178,6 @@ void MainWindow::checkConfig() {
config();
}
- model.setRootPath(passStore);
-
// TODO: this needs to be before we try to access the store,
// but it would be better to do it after the Window is shown,
// as the long delay it can cause is irritating otherwise.
@@ -990,11 +987,9 @@ void MainWindow::on_profileBox_currentIndexChanged(QString name)
}
// update model and treeview
- model.setRootPath(passStore);
proxyModel.setSourceModel(&model);
proxyModel.setModelAndStore(&model, passStore);
selectionModel.reset(new QItemSelectionModel(&proxyModel));
model.fetchMore(model.setRootPath(passStore));
model.sort(0, Qt::AscendingOrder);
- ui->treeView->setModel(&proxyModel);
}