OSX: Disable window restoration for the Mac color panel
because if it is automatically restored it's out of the application's control, so the user's interaction will be ignored. Change I8ce3cd94f5ae81d7877a346743ca4e0e188baa02 did this for normal windows by default, but the dialog helpers generate windows which aren't affected by that. Task-number: QTBUG-31750 Change-Id: I636bd87b664a489a2dc8693dad5370a715b1cf7b Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com>
This commit is contained in:
parent
e083aede62
commit
69554e4586
@ -98,6 +98,11 @@ static NSButton *macCreateButton(const char *text, NSView *superview)
|
||||
mDialogIsExecuting = false;
|
||||
mResultSet = false;
|
||||
|
||||
#if MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_7
|
||||
if (QSysInfo::MacintoshVersion >= QSysInfo::MV_10_7)
|
||||
[mColorPanel setRestorable:NO];
|
||||
#endif
|
||||
|
||||
if (mHelper->options()->testOption(QColorDialogOptions::NoButtons)) {
|
||||
mStolenContentView = 0;
|
||||
mOkButton = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user