|
@@ -6,6 +6,7 @@
|
|
|
#include "QFDAlert.h"
|
|
|
#include "QFDIcon.h"
|
|
|
#include "ProjectListWidget.h"
|
|
|
+#include "QFDAlert.h"
|
|
|
|
|
|
#include <Widgets/Button.h>
|
|
|
#include <Widgets/LineEdit.h>
|
|
@@ -127,4 +128,11 @@ void HomeView::slotSearchTextChanged()
|
|
|
void HomeView::slotConfirmCreate()
|
|
|
{
|
|
|
ProjectInfo info = m_createProjWidget->projectInfo();
|
|
|
+ int code = ProjectManager::insertProject(info);
|
|
|
+ QFDAlert::showAlertWithCode(code, m_createProjWidget);
|
|
|
+ if (code == QF_CODE_SUCCEEDED) {
|
|
|
+ m_createProjWidget->close();
|
|
|
+ m_search->clear();
|
|
|
+ loadProjects();
|
|
|
+ }
|
|
|
}
|