Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
BornAgain
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mlz
BornAgain
Commits
9ddbcd42
Commit
9ddbcd42
authored
2 years ago
by
Mikhail Svechnikov
Committed by
Wuttke, Joachim
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
clang-format
parent
06e9f4d0
No related branches found
No related tags found
1 merge request
!852
Reimplement RotMatrix using quaternions instead of generic 3x3 matrices
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
GUI/View/Project/ProjectManager.cpp
+6
-4
6 additions, 4 deletions
GUI/View/Project/ProjectManager.cpp
with
6 additions
and
4 deletions
GUI/View/Project/ProjectManager.cpp
+
6
−
4
View file @
9ddbcd42
...
@@ -335,10 +335,12 @@ void ProjectManager::createNewProject()
...
@@ -335,10 +335,12 @@ void ProjectManager::createNewProject()
const
QVariant
defFunctionalities
=
const
QVariant
defFunctionalities
=
appSettings
->
defaultFunctionalities
(
toVariant
(
ProjectDocument
::
All
));
appSettings
->
defaultFunctionalities
(
toVariant
(
ProjectDocument
::
All
));
gSessionData
->
projectDocument
.
value
()
->
setFunctionalities
(
toFunctionalities
(
defFunctionalities
));
gSessionData
->
projectDocument
.
value
()
->
setFunctionalities
(
toFunctionalities
(
defFunctionalities
));
gSessionData
->
projectDocument
.
value
()
->
setSingleInstrumentMode
(
gSessionData
->
projectDocument
.
value
()
->
setSingleInstrumentMode
(
appSettings
->
defaultIsSingleInstrumentMode
());
appSettings
->
defaultIsSingleInstrumentMode
());
gSessionData
->
projectDocument
.
value
()
->
setSingleSampleMode
(
appSettings
->
defaultIsSingleSampleMode
());
gSessionData
->
projectDocument
.
value
()
->
setSingleSampleMode
(
appSettings
->
defaultIsSingleSampleMode
());
gSessionData
->
projectDocument
.
value
()
->
setProjectName
(
"Untitled"
);
gSessionData
->
projectDocument
.
value
()
->
setProjectName
(
"Untitled"
);
gSessionData
->
projectDocument
.
value
()
->
clearModified
();
gSessionData
->
projectDocument
.
value
()
->
clearModified
();
...
@@ -355,7 +357,6 @@ void ProjectManager::deleteCurrentProject()
...
@@ -355,7 +357,6 @@ void ProjectManager::deleteCurrentProject()
m_saveService
->
stopService
();
m_saveService
->
stopService
();
gSessionData
->
projectDocument
.
reset
();
gSessionData
->
projectDocument
.
reset
();
}
}
//! Load project data from file name. If autosave info exists, opens dialog for project restore.
//! Load project data from file name. If autosave info exists, opens dialog for project restore.
...
@@ -370,7 +371,8 @@ ProjectDocument::ReadResult ProjectManager::loadProject(const QString& projectFi
...
@@ -370,7 +371,8 @@ ProjectDocument::ReadResult ProjectManager::loadProject(const QString& projectFi
const
QString
autosaveName
=
GUI
::
Project
::
Utils
::
autosaveName
(
projectFileName
);
const
QString
autosaveName
=
GUI
::
Project
::
Utils
::
autosaveName
(
projectFileName
);
if
(
useAutosave
&&
restoreProjectDialog
(
projectFileName
,
autosaveName
))
{
if
(
useAutosave
&&
restoreProjectDialog
(
projectFileName
,
autosaveName
))
{
QApplication
::
setOverrideCursor
(
Qt
::
WaitCursor
);
QApplication
::
setOverrideCursor
(
Qt
::
WaitCursor
);
readResult
=
gSessionData
->
projectDocument
.
value
()
->
loadProjectFile
(
autosaveName
,
messageService
);
readResult
=
gSessionData
->
projectDocument
.
value
()
->
loadProjectFile
(
autosaveName
,
messageService
);
gSessionData
->
projectDocument
.
value
()
->
setProjectFileName
(
projectFileName
);
gSessionData
->
projectDocument
.
value
()
->
setProjectFileName
(
projectFileName
);
gSessionData
->
projectDocument
.
value
()
->
setModified
();
gSessionData
->
projectDocument
.
value
()
->
setModified
();
}
else
{
}
else
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment