Преглед на файлове

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);
 }
 
 //------------------------------------------------------------------------------