work save

This commit is contained in:
royqh1979@gmail.com 2021-09-27 13:01:01 +08:00
parent 22acab0950
commit 356db1349f
4 changed files with 19 additions and 4 deletions

View File

@ -1,4 +1,5 @@
Version 0.2
- fix : header file completion stop work when input '.'
- change: continue to run / debug if there are compiling warnings (but no errors)
- enhancement: class browser syntax colors and icons
- enhancement: function tips

View File

@ -1445,6 +1445,16 @@ void MainWindow::scanActiveProject(bool parse)
};
}
void MainWindow::saveLastOpens()
{
}
void MainWindow::loadLastOpens()
{
}
void MainWindow::buildContextMenus()
{
@ -2230,14 +2240,16 @@ void MainWindow::closeEvent(QCloseEvent *event) {
settings.setLeftPanelOpenned(mLeftPanelOpenned);
settings.save();
if (mProject) {
closeProject(false);
}
if (!mEditorList->closeAll(false)) {
event->ignore();
return ;
}
if (mProject) {
closeProject(false);
}
mCompilerManager->stopCompile();
mCompilerManager->stopRun();

View File

@ -154,6 +154,8 @@ private:
QWidget* parent,
QKeySequence shortcut=QKeySequence());
void scanActiveProject(bool parse=false);
void saveLastOpens();
void loadLastOpens();
private slots:
void onAutoSaveTimeout();

View File

@ -1187,7 +1187,7 @@ void Project::doAutoOpen()
// 2:
// LoadLayout; // Open previous selection
// end;
loadLayout();
}
bool Project::fileAlreadyExists(const QString &s)