소스 검색

BUG: When the bottom widget is 0, no need to span the button box

julien 15 년 전
부모
커밋
74c1e8bd19
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      Libs/Widgets/ctkFileDialog.cpp

+ 1 - 1
Libs/Widgets/ctkFileDialog.cpp

@@ -118,7 +118,7 @@ void ctkFileDialog::setBottomWidget(QWidget* widget, const QString& label)
   QDialogButtonBox* buttonBox = this->findChild<QDialogButtonBox*>();
   Q_ASSERT(buttonBox);
   gridLayout->removeWidget(buttonBox);
-  gridLayout->addWidget(buttonBox, 2, 2, 3, 1);
+  gridLayout->addWidget(buttonBox, 2, 2, widget ? 3 : 2, 1);
 }
 
 //------------------------------------------------------------------------------