dix: disable FS watcher after closing BlockedModsDialog
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
b29c99656e
commit
2fd7338cd3
@ -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) {
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user