aboutsummaryrefslogtreecommitdiff
path: root/qmidiplayer-desktop/qmpmainwindow.hpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2019-12-02 11:55:52 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2019-12-02 11:55:52 +0800
commit81c26b4dd3c3d11471bacfe7a4a83d2a8edac751 (patch)
tree6db653f625bf2765738f3a2169d3344e52626e7d /qmidiplayer-desktop/qmpmainwindow.hpp
parentc34daa26c67f4a879ff541775c099ddc19a1dec5 (diff)
downloadQMidiPlayer-81c26b4dd3c3d11471bacfe7a4a83d2a8edac751.tar.xz
No more creepy blank action buttons that cause crashes if clicked.
If a plugin has been removed and the toolbar is reconfigured afterwards, a blank button will appear in the toolbar, which will cause a crash when clicked.
Diffstat (limited to 'qmidiplayer-desktop/qmpmainwindow.hpp')
-rw-r--r--qmidiplayer-desktop/qmpmainwindow.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/qmidiplayer-desktop/qmpmainwindow.hpp b/qmidiplayer-desktop/qmpmainwindow.hpp
index ea5209c..c8f3827 100644
--- a/qmidiplayer-desktop/qmpmainwindow.hpp
+++ b/qmidiplayer-desktop/qmpmainwindow.hpp
@@ -86,12 +86,12 @@ class QReflectivePushButton:public QPushButton
class qmpFuncPrivate
{
private:
- qmpFuncBaseIntf* _i;
+ qmpFuncBaseIntf* _i=nullptr;
QIcon _icon;
std::string des;
bool _checkable,checked;
- QReflectiveAction* asgna;
- QReflectivePushButton* asgnb;
+ QReflectiveAction* asgna=nullptr;
+ QReflectivePushButton* asgnb=nullptr;
public:
qmpFuncPrivate(){}
qmpFuncPrivate(qmpFuncBaseIntf* i,std::string _desc,const char* icon,int iconlen,bool checkable);