Clean up listener

If the style is unloaded for example by an application dynamically
switching styles, the listener was still around leading us to call
into destroyed objects when the color scheme was changed.
BUG:432660
wilder-5.24
David Redondo 5 years ago
parent 3d2bb30a86
commit 5de36bd138
  1. 2
      kstyle/breezetoolsareamanager.cpp
  2. 1
      kstyle/breezetoolsareamanager.h

@ -41,7 +41,7 @@ namespace Breeze {
void ToolsAreaManager::registerApplication(QApplication *application)
{
_listener = new AppListener;
_listener = new AppListener(this);
_listener->manager = this;
if (application->property(colorProperty).isValid()) {
auto path = application->property(colorProperty).toString();

@ -18,6 +18,7 @@ namespace Breeze {
class AppListener : public QObject
{
Q_OBJECT
using QObject::QObject;
bool eventFilter(QObject *watched, QEvent *event) override;

Loading…
Cancel
Save