- fix: bottom and left panel properties not correctly saved when hiding the main window

This commit is contained in:
royqh1979 2021-10-31 09:39:31 +08:00
parent 43a1b6074a
commit 0e4bae7b93
2 changed files with 1 additions and 16 deletions

View File

@ -1355,19 +1355,11 @@ void MainWindow::debug()
case CompileTarget::None:
return;
case CompileTarget::File:
// if (mCompiler->useRunParams) {
// }
mDebugger->sendCommand("start",params);
mDebugger->updateDebugInfo();
break;
case CompileTarget::Project:
params = "";
//if fCompiler.UseRunParams then
// params := params + ' ' + fProject.Options.CmdLineArgs;
//if fCompiler.UseInputFile then
// params := params + ' < "' + fCompiler.InputFile + '"';
mDebugger->sendCommand("start",params);
mDebugger->updateDebugInfo();
break;
@ -1384,12 +1376,6 @@ void MainWindow::debug()
mDebugger->updateDebugInfo();
break;
case CompileTarget::Project:
//params := '';
//if fCompiler.UseRunParams then
// params := params + ' ' + fProject.Options.CmdLineArgs;
//if fCompiler.UseInputFile then
// params := params + ' < "' + fCompiler.InputFile + '"';
mDebugger->sendCommand("run",params);
mDebugger->updateDebugInfo();
break;

View File

@ -542,8 +542,7 @@ private:
protected:
void closeEvent(QCloseEvent *event) override;
void showEvent(QShowEvent* event) override;
// void dragEnterEvent(QDragEnterEvent *event) override;
// void dropEvent(QDropEvent *event) override;
void hideEvent(QHideEvent *event) override;
};
extern MainWindow* pMainWindow;