mirror of
https://github.com/YACReader/yacreader
synced 2025-07-23 07:24:58 -04:00
fixed build and crash in YACReader MacOSX
This commit is contained in:
@ -162,6 +162,7 @@ YACReaderMacOSXToolbar::YACReaderMacOSXToolbar(QObject *parent)
|
||||
((MyToolbarDelegate *)delegate)->mytoolbar = this;
|
||||
[nativeToolBar setDelegate:(MyToolbarDelegate *)delegate];
|
||||
|
||||
#ifdef YACREADER_LIBRARY
|
||||
NSWindow *nswindow = (NSWindow*) qApp->platformNativeInterface()->nativeResourceForWindow("nswindow", ((QMainWindow*)parent)->windowHandle());
|
||||
if([nswindow respondsToSelector:@selector(setTitleVisibility:)])
|
||||
{
|
||||
@ -169,6 +170,8 @@ YACReaderMacOSXToolbar::YACReaderMacOSXToolbar(QObject *parent)
|
||||
[nswindow setTitleVisibility:1];
|
||||
}else
|
||||
yosemite = false;
|
||||
#endif
|
||||
yosemite = false;
|
||||
}
|
||||
|
||||
void YACReaderMacOSXToolbar::addAction(QAction *action)
|
||||
|
Reference in New Issue
Block a user