|
|
@@ -128,6 +128,14 @@ void MainWindow::changeToAddNew()
|
|
|
QMessageBox::information(this,tr("注意"),tr("请登录"));
|
|
|
return;
|
|
|
}
|
|
|
+// if(GlobalInfo::this_()->isNoLine() == false){
|
|
|
+// QMessageBox::information(this,tr("注意"),tr("在线不能添加规格"));
|
|
|
+// return;
|
|
|
+// }
|
|
|
+ if(GlobalInfo::this_()->isNoLine() == true){
|
|
|
+ QMessageBox::information(this,tr("注意"),tr("离线不能添加规格"));
|
|
|
+ return;
|
|
|
+ }
|
|
|
ui->stackedWidget->setCurrentWidget(ui->pageAddNew);
|
|
|
}
|
|
|
|
|
|
@@ -206,6 +214,8 @@ void MainWindow::logout()
|
|
|
ui->dingzhong->save();
|
|
|
ui->buding->save();
|
|
|
GlobalInfo::this_()->logOuted();
|
|
|
+ UserInfo user;
|
|
|
+ GlobalInfo::this_()->start(user,true);
|
|
|
GlobalInfo::this_()->setIslogin(false);
|
|
|
ui->stackedWidget->setCurrentWidget(ui->pageLogin);
|
|
|
}
|