From 70ed30f9e6b47fbfb3151078ca61a2bb419feccb Mon Sep 17 00:00:00 2001 From: Petr Mrázek Date: Sun, 7 Apr 2019 23:59:04 +0200 Subject: GH-2591 less std::shared_ptr and more shared_qobject_ptr This eliminates some weird crashes. --- api/gui/icons/IconList.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'api/gui/icons/IconList.h') 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 m_watcher; + shared_qobject_ptr m_watcher; bool is_watching; QMap name_index; QVector icons; -- cgit