summaryrefslogtreecommitdiffhomepage
path: root/gui
diff options
context:
space:
mode:
Diffstat (limited to 'gui')
-rw-r--r--gui/main-window.cpp9
-rw-r--r--gui/options-dialog.ui2
2 files changed, 8 insertions, 3 deletions
diff --git a/gui/main-window.cpp b/gui/main-window.cpp
index 0f070cc4..1730a806 100644
--- a/gui/main-window.cpp
+++ b/gui/main-window.cpp
@@ -572,10 +572,12 @@ bool mk_dialog(mem<dylib> lib, ptr<t>& orig)
{
t* dialog = reinterpret_cast<t*>(lib->Dialog());
dialog->setWindowFlags(Qt::Dialog);
- dialog->setFixedSize(dialog->size());
+ // HACK: prevent stderr whining by adding a few pixels
+ dialog->setFixedSize(dialog->size() + QSize(4, 4));
+ dialog->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
+ dialog->show();
orig.reset(dialog);
- dialog->show();
QObject::connect(dialog, &plugin_api::detail::BaseDialog::closing, [&]() -> void { orig = nullptr; });
@@ -616,6 +618,9 @@ static bool mk_window(ptr<t>* place, Args&&... params)
{
*place = make_unique<t>(std::forward<Args>(params)...);
(*place)->setWindowFlags(Qt::Dialog);
+ // HACK: prevent stderr whining by adding a few pixels
+ (*place)->setFixedSize((*place)->size() + QSize(4, 4));
+ (*place)->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
(*place)->show();
return true;
}
diff --git a/gui/options-dialog.ui b/gui/options-dialog.ui
index a1da2936..7011f156 100644
--- a/gui/options-dialog.ui
+++ b/gui/options-dialog.ui
@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>546</width>
- <height>594</height>
+ <height>588</height>
</rect>
</property>
<property name="windowTitle">