Permalink
Browse files

Fixed docsets removing on Windows

  • Loading branch information...
1 parent 505c0d8 commit 25ddf0c95c34fab25b4359d3409a5ba94a95f980 @jkozera committed Mar 27, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −1 zeal/mainwindow.cpp
  2. +1 −0 zeal/zealdocsetsregistry.h
View
@@ -243,6 +243,7 @@ MainWindow::MainWindow(QWidget *parent) :
if(answer == QMessageBox::Yes) {
auto dataDir = QDir(dataLocation);
auto docsetName = settingsDialog.ui->listView->currentIndex().data().toString();
+ zealList.removeRow(settingsDialog.ui->listView->currentIndex().row());
if(dataDir.cd("docsets")) {
settingsDialog.ui->docsetsProgress->show();
settingsDialog.ui->deleteButton->hide();
@@ -263,7 +264,6 @@ MainWindow::MainWindow(QWidget *parent) :
watcher->deleteLater();
});
}
- zealList.removeRow(settingsDialog.ui->listView->currentIndex().row());
}
});
connect(settingsDialog.ui->downloadButton, &QPushButton::clicked, [=] {
@@ -51,6 +51,7 @@ class ZealDocsetsRegistry : public QObject
}
void remove(const QString& name) {
+ dbs[name].close();
dbs.remove(name);
dirs.remove(name);
types.remove(name);

0 comments on commit 25ddf0c

Please sign in to comment.