diff options
author | Petr Mrázek <peterix@gmail.com> | 2019-04-07 23:59:04 +0200 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2019-04-07 23:59:04 +0200 |
commit | 70ed30f9e6b47fbfb3151078ca61a2bb419feccb (patch) | |
tree | 0849ab3776d3e716285f3186b4e8e21ee246ee21 /api/gui/icons | |
parent | 414946cad94affccddfa500056c6eeb967438643 (diff) | |
download | PrismLauncher-70ed30f9e6b47fbfb3151078ca61a2bb419feccb.tar.gz PrismLauncher-70ed30f9e6b47fbfb3151078ca61a2bb419feccb.tar.bz2 PrismLauncher-70ed30f9e6b47fbfb3151078ca61a2bb419feccb.zip |
GH-2591 less std::shared_ptr and more shared_qobject_ptr
This eliminates some weird crashes.
Diffstat (limited to 'api/gui/icons')
-rw-r--r-- | api/gui/icons/IconList.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/api/gui/icons/IconList.h b/api/gui/icons/IconList.h index 2bacdac3..274a9f02 100644 --- a/api/gui/icons/IconList.h +++ b/api/gui/icons/IconList.h @@ -80,7 +80,7 @@ protected slots: void fileChanged(const QString &path); void SettingChanged(const Setting & setting, QVariant value); private: - std::shared_ptr<QFileSystemWatcher> m_watcher; + shared_qobject_ptr<QFileSystemWatcher> m_watcher; bool is_watching; QMap<QString, int> name_index; QVector<MMCIcon> icons; |