Commit 45efbcb8 by ss.dai

米有提交店测

parent 2d450c38
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
#include "Control/sinfoControl.h" #include "Control/sinfoControl.h"
#include "floatForm.h" #include "floatForm.h"
#include "DTools/configManger.h" #include "DTools/configManger.h"
#include <windows.h>
using namespace QsLogging; using namespace QsLogging;
...@@ -48,6 +49,14 @@ void LoadTheme(const QString& theme) ...@@ -48,6 +49,14 @@ void LoadTheme(const QString& theme)
int main(int argc, char *argv[]) int main(int argc, char *argv[])
{ {
HANDLE m_hMutex = CreateMutex(NULL, FALSE, L"fmTakeaway" );
if (GetLastError() == ERROR_ALREADY_EXISTS) {
CloseHandle(m_hMutex);
m_hMutex = NULL;
return -1;
}
QApplication a(argc, argv); QApplication a(argc, argv);
g_appDir = a.applicationDirPath(); g_appDir = a.applicationDirPath();
......
...@@ -89,6 +89,8 @@ void MainForm::MyShow() ...@@ -89,6 +89,8 @@ void MainForm::MyShow()
m_resultForm->hide(); m_resultForm->hide();
connect(m_resultForm, &QListWidget::itemClicked, this, &MainForm::onSearchResultItemClicked); connect(m_resultForm, &QListWidget::itemClicked, this, &MainForm::onSearchResultItemClicked);
on_mainBtnHide_clicked();
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment