diff options
-rw-r--r-- | src/mainwindow.cpp | 1 | ||||
-rw-r--r-- | src/storemodel.cpp | 1 |
2 files changed, 1 insertions, 1 deletions
diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index c794a521..c643bcc5 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -65,7 +65,6 @@ MainWindow::MainWindow(const QString &searchText, QWidget *parent) QString passStore = QtPassSettings::getPassStore(Util::findPasswordStore()); - proxyModel.setSourceModel(&model); proxyModel.setModelAndStore(&model, passStore); // proxyModel.sort(0, Qt::AscendingOrder); selectionModel.reset(new QItemSelectionModel(&proxyModel)); diff --git a/src/storemodel.cpp b/src/storemodel.cpp index a46e1b03..b6fef94c 100644 --- a/src/storemodel.cpp +++ b/src/storemodel.cpp @@ -80,6 +80,7 @@ bool StoreModel::ShowThis(const QModelIndex index) const { */ void StoreModel::setModelAndStore(QFileSystemModel *sourceModel, QString passStore) { + setSourceModel(sourceModel); fs = sourceModel; store = std::move(passStore); } |