State:Closed|icon_bug|icon_nuke|database:public|Resolution:Fixed|TargetRelease:12.0v1|BugID:403904|
Problem summary
QFileDialog automatically closes when opened via a context menu
This only effects OSX on Nuke 11
Customer reported version
Nuke 11.3v3
Customer reported platform
MacOSX 10.14
Steps to reproduce
1) Open Nuke Studio/Hiero
2) Run the below code:
import hierofrom PySide2 import QtWidgetsclass Test(QtWidgets.QAction): def __init__(self): super(Test, self).__init__('Test', None) hiero.core.events.registerInterest('kShowContextMenu/kTimeline', self.eventHandler) self.triggered.connect(self.main) def eventHandler(self, event): event.menu.addAction(self) def main(self): file_path = QtWidgets.QFileDialog.getOpenFileName(None, 'Load Data', '/tmp/', '*.*')[0] print 'file path is: ' + str(file_path)Test = Test() 3) Right click the Timeline, the file dialog appears, then instantly disappears
Expected behaviour
For the file dialog to open correctly
Actual behaviour
It instantly closes
Reproduced by support
This problem has been reproduced on:
Nuke 11.3v5 - MacOSX 10.13
Nuke 11.3v1 - MacOSX 10.13
Nuke 11.2v1 - MacOSX 10.13
Nuke 11.1v1 - MacOSX 10.13
Nuke 11.0v1 - MacOSX 10.13 - regression
Unable to reproduce bug in:
Nuke 11.3v5 - Windows 10 - CentOS 6.9
Nuke 10.5v8 - MacOSX 10.13
Earliest version tested
Nuke 10.5v8 - This issue no longer appears in this version and has regressed
We're sorry to hear that
Please tell us why