Commit Graph

4 Commits

Author SHA1 Message Date
Eike Ziller
b5086172cc Fix button states at startup
When opening Qt Creator with clean settings, the run, debug and build
actions build be in the wrong state (enabled instead of disabled, no
debug icon).

This happened because a ProjectExplorer::updateActions call was removed
from the end of restoring the session at startup when moving the session
handling to Core plugin.

That updateActions call shouldn't be necesseray, and isn't if a session
is loaded, even if it is the "implicit default", because then
sessionLoaded(...) is emitted which results in the updateActions() call.

The sessionLoaded(...) signal was not sent if the file for the default
session does not exist. Fix that by also sending the signal even if no
file was actually loaded.

Amends cbeac777a6

Change-Id: Idb625253f29611e777d85f0feb6c196fae567ed0
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-07-06 13:21:18 +00:00
Leena Miettinen
d15da2c0f9 Doc: Fix qdoc warnings in Core plugin docs
Change-Id: Id7b7c1c66e75ad5bce2ea9801493eb7872121e52
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
2023-05-26 14:32:07 +00:00
Eike Ziller
f2c1455025 Tr: Wrap file paths with ""
Change-Id: Iee0e941ff503ff485e8e9c0d9fe3e52eea9042d5
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
2023-05-26 13:50:07 +00:00
Eike Ziller
edd1a89807 Move SessionManager to Core plugin
Sessions are independent from projects, and this allows for removal of
e.g. the dependency from Bookmarks to ProjectExplorer.

Includes moving the command line arguments (-lastsession, <session>) to
Core plugin.

Change-Id: I6c578fd15c4990902e7196501de20f39376e90e8
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
2023-05-25 11:15:41 +00:00