dix: disable FS watcher after closing BlockedModsDialog

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-12-05 21:27:23 +01:00
parent b29c99656e
commit 2fd7338cd3
No known key found for this signature in database
GPG Key ID: C10411294912A422
2 changed files with 10 additions and 0 deletions

View File

@ -79,6 +79,12 @@ void BlockedModsDialog::dropEvent(QDropEvent* e)
update();
}
void BlockedModsDialog::done(int r)
{
QDialog::done(r);
disconnect(&m_watcher, &QFileSystemWatcher::directoryChanged, this, &BlockedModsDialog::directoryChanged);
}
void BlockedModsDialog::openAll()
{
for (auto& mod : m_mods) {

View File

@ -35,6 +35,10 @@ protected:
void dragEnterEvent(QDragEnterEvent *event) override;
void dropEvent(QDropEvent *event) override;
protected
slots:
void done(int r) override;
private:
Ui::BlockedModsDialog *ui;
QList<BlockedMod> &m_mods;