don't double delete m_spy

dtor not needed
BUG:388910
This commit is contained in:
Marco Martin 2018-01-15 10:56:05 +01:00
parent eb69e87288
commit 8510f31340
2 changed files with 1 additions and 6 deletions

View file

@ -82,11 +82,6 @@ TabletModeManager::TabletModeManager(QObject *parent)
); );
} }
TabletModeManager::~TabletModeManager()
{
delete m_spy;
}
bool TabletModeManager::isTablet() const bool TabletModeManager::isTablet() const
{ {
return m_isTabletMode; return m_isTabletMode;

View file

@ -36,7 +36,7 @@ class TabletModeManager : public QObject
Q_PROPERTY(bool tabletMode READ isTablet NOTIFY tabletModeChanged) Q_PROPERTY(bool tabletMode READ isTablet NOTIFY tabletModeChanged)
public: public:
~TabletModeManager(); ~TabletModeManager() = default;
bool isTablet() const; bool isTablet() const;
void setIsTablet(bool tablet); void setIsTablet(bool tablet);