瀏覽代碼

improved in-code description of previous ctkFileDialog crash fix

Christian Askeland 10 年之前
父節點
當前提交
d532162423
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Libs/Widgets/ctkFileDialog.cpp

+ 3 - 0
Libs/Widgets/ctkFileDialog.cpp

@@ -116,6 +116,9 @@ ctkFileDialog::ctkFileDialog(QWidget *parentWidget,
 {
 {
   Q_D(ctkFileDialog);
   Q_D(ctkFileDialog);
 
 
+// The findChild<QDialogButtonBox*>() call fails on Mac/Qt5 because native
+// dialogs don't publish any internals. No problems on other OS.
+// Can be applied to Qt4 as well, if problems arise there.
 #if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
 #if QT_VERSION >= QT_VERSION_CHECK(5,0,0)
   this->setOptions(DontUseNativeDialog);
   this->setOptions(DontUseNativeDialog);
 #endif
 #endif