mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 00:58:32 -04:00
Fix nullptr crash.
This commit is contained in:
parent
7ce05f71c2
commit
8881ef885d
@ -143,7 +143,9 @@ void YACReaderLibraryToolbar::hide()
|
||||
void YACReaderLibraryToolbar::updateViewSelectorIcon(const QIcon &icon)
|
||||
{
|
||||
#ifdef Q_OS_MAC
|
||||
if (macosxToolbar != nullptr) {
|
||||
macosxToolbar->updateViewSelectorIcon(icon);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ private:
|
||||
QSettings * settings;
|
||||
|
||||
#ifdef Q_OS_MAC
|
||||
YACReaderMacOSXToolbar *macosxToolbar;
|
||||
YACReaderMacOSXToolbar *macosxToolbar = nullptr;
|
||||
#endif
|
||||
|
||||
YACReaderMainToolBar *defaultToolbar = nullptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user