Skip to content

Commit

Permalink
修bug
Browse files Browse the repository at this point in the history
  • Loading branch information
WisteFinch committed Jul 23, 2022
1 parent 39cb23c commit 7fd4da8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
6 changes: 3 additions & 3 deletions WTSMT/CMakeLists.txt.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 7.0.2, 2022-07-15T10:16:49. -->
<!-- Written by QtCreator 7.0.2, 2022-07-23T22:41:35. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down Expand Up @@ -94,7 +94,7 @@
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DefaultDisplayName">Desktop Qt 6.3.1 MinGW 64-bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.DisplayName">Desktop Qt 6.3.1 MinGW 64-bit</value>
<value type="QString" key="ProjectExplorer.ProjectConfiguration.Id">qt.qt6.631.win64_mingw_kit</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveBuildConfiguration">3</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveDeployConfiguration">0</value>
<value type="qlonglong" key="ProjectExplorer.Target.ActiveRunConfiguration">0</value>
<valuemap type="QVariantMap" key="ProjectExplorer.Target.BuildConfiguration.0">
Expand Down Expand Up @@ -308,7 +308,7 @@
<value type="bool" key="RunConfiguration.UseLibrarySearchPath">true</value>
<value type="bool" key="RunConfiguration.UseQmlDebugger">false</value>
<value type="bool" key="RunConfiguration.UseQmlDebuggerAuto">true</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">D:/repository/WarThunder-Sound-Mod-Tool/build-WTSMT-Desktop_Qt_6_3_1_MinGW_64_bit-Debug</value>
<value type="QString" key="RunConfiguration.WorkingDirectory.default">D:/repository/WarThunder-Sound-Mod-Tool/build-WTSMT-Desktop_Qt_6_3_1_MinGW_64_bit-MinSizeRel</value>
</valuemap>
<value type="qlonglong" key="ProjectExplorer.Target.RunConfigurationCount">1</value>
</valuemap>
Expand Down
5 changes: 3 additions & 2 deletions WTSMT/mainwidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ MainWidget::MainWidget(QWidget *parent)
QPushButton *b = new QPushButton();
b->setText(m->m_name);
this->m_layout_models->addWidget(b);
connect(b, &QPushButton::clicked, this, [=]{m->show();});
connect(b, &QPushButton::clicked, this, [=]{m->show();m->checkFiles();});
}
}
}
Expand Down Expand Up @@ -106,6 +106,7 @@ void MainWidget::import(){
void MainWidget::checkFiles()
{
for(int i = 0; i < this->m_models.size(); i++){
this->m_models.at(i)->checkFiles();
if(this->m_models.at(i)->isVisible())
this->m_models.at(i)->checkFiles();
}
}

0 comments on commit 7fd4da8

Please sign in to comment.