Fix palettes-related crashes
- Fix a crash on showing a tooltip after drag-and-drop in some cases - Fix a crash on program exit on Windows
This commit is contained in:
parent
3c2cb77068
commit
079c72cdbb
2 changed files with 7 additions and 1 deletions
|
@ -1960,6 +1960,12 @@ MuseScore::~MuseScore()
|
|||
autoUpdater->cleanup();
|
||||
|
||||
delete synti;
|
||||
|
||||
// A crash is possible if paletteWorkspace gets
|
||||
// deleted before paletteWidget, so force the widget
|
||||
// be deleted before paletteWorkspace.
|
||||
delete paletteWidget;
|
||||
paletteWidget = nullptr;
|
||||
}
|
||||
|
||||
//---------------------------------------------------------
|
||||
|
|
|
@ -33,7 +33,7 @@ class QmlNativeToolTip : public QObject {
|
|||
Q_PROPERTY(QString text READ text WRITE setText)
|
||||
|
||||
QWidget* _widget;
|
||||
QQuickItem* _item = nullptr;
|
||||
QPointer<QQuickItem> _item = nullptr;
|
||||
QString _text;
|
||||
QString _lastShownText;
|
||||
QTimer _timer;
|
||||
|
|
Loading…
Reference in a new issue