From c167e018437a827bd6c46721dad64e6ce9cf876e Mon Sep 17 00:00:00 2001 From: taynpg Date: Sat, 14 Sep 2024 09:52:45 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=AD=A3=E7=A9=BA?= =?UTF-8?q?=E7=99=BD=E5=AE=BD=E5=BA=A6=E6=B7=BB=E5=8A=A0=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E4=B8=8D=E7=94=9F=E6=95=88=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MainWidget.cpp | 8 ++++---- main.cpp | 1 - 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/MainWidget.cpp b/MainWidget.cpp index 4fbdbbd..173452c 100644 --- a/MainWidget.cpp +++ b/MainWidget.cpp @@ -150,10 +150,6 @@ MainWidget::MainWidget(QWidget* parent) // } init_menu(); - - if (cur_config_.max_blank_add > 20) { - blank_with_ = cur_config_.max_blank_add; - } // 基本处理 base_init(); } @@ -346,6 +342,10 @@ bool MainWidget::read(const QString& file_path) return false; } + if (cur_config_.max_blank_add >= 0) { + blank_with_ = cur_config_.max_blank_add; + } + if (cur_config_.is_same) { std::vector units; xml_.get_all_unit(units); diff --git a/main.cpp b/main.cpp index 96326bd..3f6d948 100644 --- a/main.cpp +++ b/main.cpp @@ -17,7 +17,6 @@ int main(int argc, char *argv[]) #endif a.setStyle("windows"); - MainWidget w; w.set_work_exe(argv[0]); w.show();