forked from quickshell/quickshell
core/generation: use deleteLater() to delete file watchers
Should fix crashes similar to those in FileView.
This commit is contained in:
parent
2b01a75679
commit
2a8479d635
1 changed files with 1 additions and 1 deletions
|
@ -192,7 +192,7 @@ void EngineGeneration::setWatchingFiles(bool watching) {
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (this->watcher != nullptr) {
|
if (this->watcher != nullptr) {
|
||||||
delete this->watcher;
|
this->watcher->deleteLater();
|
||||||
this->watcher = nullptr;
|
this->watcher = nullptr;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue