hlp:分段计米部分bug修复,按需求不需要超级密码就可以使用分段计米
This commit is contained in:
+6
-4
@@ -2,7 +2,7 @@
|
||||
#include "ui_texteditoption.h"
|
||||
#include "PicWidget.h"
|
||||
#include "scene/picscene.h"
|
||||
|
||||
#include "SectionalCounting/sectionalmanager.h"
|
||||
#include <QFileDialog>
|
||||
#include <QDebug>
|
||||
#include <QInputDialog>
|
||||
@@ -645,10 +645,13 @@ bool TextEditOption::maybeSave(){
|
||||
on_bottonSave_clicked();
|
||||
return false;
|
||||
} else if (msgBox.clickedButton() == cancleSaveButton) {
|
||||
SectionalManager::instance()->emitCancelSection();
|
||||
return true;
|
||||
}
|
||||
else
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
return true;
|
||||
}
|
||||
@@ -663,13 +666,12 @@ void TextEditOption::on_bottonNew_pressed()
|
||||
textEdit->clear();
|
||||
fileName = "";
|
||||
sysPara->sysFile = "";
|
||||
QFile file(fileName);
|
||||
QFile file(fileName);
|
||||
emit fileNameChanged(QFileInfo(fileName).fileName());
|
||||
}
|
||||
#ifdef VARCOLOR
|
||||
textEdit->insertHtml(QString("<span style='background:#ffffff;color=#000000;'> <span />"));
|
||||
#endif
|
||||
|
||||
}
|
||||
|
||||
void TextEditOption::onOpenNewFile()
|
||||
|
||||
Reference in New Issue
Block a user