diff --git a/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp b/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp index bb78cd48..bd93b72d 100644 --- a/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp +++ b/src/Editor/ResourceBrowser/CResourceTableContextMenu.cpp @@ -12,8 +12,6 @@ CResourceTableContextMenu::CResourceTableContextMenu(CResourceBrowser *pBrowser, , mpTable(pView) , mpModel(pModel) , mpProxy(pProxy) - , mpClickedEntry(nullptr) - , mpClickedDirectory(nullptr) { // Connect to the view connect(pView, SIGNAL(customContextMenuRequested(QPoint)), this, SLOT(ShowMenu(QPoint))); diff --git a/src/Editor/ResourceBrowser/CResourceTableContextMenu.h b/src/Editor/ResourceBrowser/CResourceTableContextMenu.h index 68137c5b..c8dcfb6e 100644 --- a/src/Editor/ResourceBrowser/CResourceTableContextMenu.h +++ b/src/Editor/ResourceBrowser/CResourceTableContextMenu.h @@ -19,8 +19,8 @@ class CResourceTableContextMenu : public QMenu QModelIndexList mSelectedIndexes; QModelIndex mClickedIndex; QModelIndex mClickedProxyIndex; - CResourceEntry *mpClickedEntry; - CVirtualDirectory *mpClickedDirectory; + CResourceEntry *mpClickedEntry = nullptr; + CVirtualDirectory *mpClickedDirectory = nullptr; public: CResourceTableContextMenu(CResourceBrowser *pBrowser, QTableView *pView, CResourceTableModel *pModel, CResourceProxyModel *pProxy);