mirror of
https://github.com/YACReader/yacreader
synced 2025-06-04 01:28:55 -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)
|
void YACReaderLibraryToolbar::updateViewSelectorIcon(const QIcon &icon)
|
||||||
{
|
{
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
|
if (macosxToolbar != nullptr) {
|
||||||
macosxToolbar->updateViewSelectorIcon(icon);
|
macosxToolbar->updateViewSelectorIcon(icon);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ private:
|
|||||||
QSettings * settings;
|
QSettings * settings;
|
||||||
|
|
||||||
#ifdef Q_OS_MAC
|
#ifdef Q_OS_MAC
|
||||||
YACReaderMacOSXToolbar *macosxToolbar;
|
YACReaderMacOSXToolbar *macosxToolbar = nullptr;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
YACReaderMainToolBar *defaultToolbar = nullptr;
|
YACReaderMainToolBar *defaultToolbar = nullptr;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user