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 Version 0.2
- fix : header file completion stop work when input '.'
- change: continue to run / debug if there are compiling warnings (but no errors) - change: continue to run / debug if there are compiling warnings (but no errors)
- enhancement: class browser syntax colors and icons - enhancement: class browser syntax colors and icons
- enhancement: function tips - enhancement: function tips

View File

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

View File

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

View File

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