Commit Graph

9627 Commits

Author SHA1 Message Date
Klaus Basan
cb78453e7c Make sure contexts are "gracefulShutdown"
The shutdown was NOT called as it was canceled because of being in shutdown mode
2020-06-12 18:42:42 +01:00
Klaus Basan
53bd5e6be7 Close modal widgets on shutdown and
"kill" still floating dock widgets (HACK!)
2020-06-12 18:42:42 +01:00
Klaus Basan
53ed37d7fd Changed shutdown order in facade
* audio first, with disconnect
* then network

rational: logoff from the network first
2020-06-12 18:42:42 +01:00
Klaus Basan
507c9e57d7 Guard to avoid issues during shutdown 2020-06-12 18:42:42 +01:00
Klaus Basan
5e8696464f Utility functions 2020-06-12 18:42:42 +01:00
Klaus Basan
e8786f9794 Some CDockWidget improvements
* save original dock areas
* init dw_InfoBarStatus as it is not part of an info area (which does that)
2020-06-12 18:42:41 +01:00
Mat Sutcliffe
2f1e3f47f9 Track worker construction and destruction
Added debug log messages in case a worker still exists when the `qApp` is destroyed.
This would mean that a `quitAndWait` is missing or is being skipped somewhere.
2020-06-12 18:42:41 +01:00
Mat Sutcliffe
e5528288b5 Lifetime management of value cache singletons
Hook in to the `destroyed` signal of the `qApp` to destroy the caches.
This ensures any associated workers are quit before application
terminates and kills all the threads.
2020-06-12 18:42:41 +01:00
Mat Sutcliffe
9dbe2f4018 Avoid thread-local storage in CLogCategoryList::fromClass
Use an ordinary function-local static variable instead.
This ensures we can still log messages after thread-local storage is cleaned up.
2020-06-12 18:42:41 +01:00
Mat Sutcliffe
e8380173c9 Store CDataCacheSerializer as a pointer for correct lifetime management 2020-06-12 18:42:41 +01:00
Klaus Basan
0ee522426a Create "shutdown" message to find how far we get if swift hangs during shutdown 2020-06-12 18:42:41 +01:00
Klaus Basan
6eb767f938 Minor style, typo 2020-06-12 18:42:41 +01:00
Klaus Basan
e6a12d45c4 Ref T778, improved "canLikelySkipNearGround" in airspace monitor
* use CAircraftIcaoCode::guessModelParameters as this gives us an impression of speed
* use "breakable" do/while block / fewer nested "if" levels
2020-06-12 18:42:41 +01:00
Klaus Basan
5bc09ed2c8 [PQ] added static "parsedFromString" 2020-06-12 18:42:41 +01:00
Klaus Basan
1642502aae Distributor filter improvements
* if all or none simulator is selected do not filter
* also select if there is no (NULL) simulator
2020-06-12 18:42:41 +01:00
Klaus Basan
00b2034b2d Disabled AFV client project for the moment
Very detailed discussion here: https://discordapp.com/channels/539048679160676382/539925070550794240/692788603935260693
2020-06-12 18:42:41 +01:00
Klaus Basan
cfb2fa9d22 Split "Display and rendered" aircraft,
just to avoid accidentally disabling aircraft when using "follow"
2020-06-12 18:42:41 +01:00
Klaus Basan
dab907df8c Graceful shutdown of SELCAL player with audio context 2020-06-12 18:42:41 +01:00
Klaus Basan
87a9059a05 [XSwiftBus] Fix, write the string not the enum value 2020-06-12 18:42:40 +01:00
Roland Rossgotterer
77138f7788 Disable crashpad on Linux until the segfault is investigated 2020-06-12 18:42:40 +01:00
Roland Rossgotterer
bb0ef86044 Remove unnecessary header file not being available in MinGW 2020-06-12 18:42:40 +01:00
Roland Rossgotterer
fb7a2a7013 Update externals 2020-06-12 18:42:40 +01:00
Roland Rossgotterer
f98e8f00e1 Add missing linker library 2020-06-12 18:42:40 +01:00
Roland Rossgotterer
f7cd840d42 Workaround GCC 8.1 internal compiler error 2020-06-12 18:42:40 +01:00
Klaus Basan
82f7771882 Set "ft" as default unit for altitude formatter
See https://discordapp.com/channels/539048679160676382/539486489977946112/692158405145788437
2020-06-12 18:42:40 +01:00
Klaus Basan
605ccdbaa8 Fix ASSERT if there are NO tab names (which can be configured)
* report https://discordapp.com/channels/539048679160676382/539486489977946112/692165190103466005
* use fallback search
* add tooltips
2020-06-12 18:42:40 +01:00
Klaus Basan
7d4e897b88 [AFV] Displayed sync. (integrated with COM unit) flag in cockpit 2020-06-12 18:42:40 +01:00
Mat Sutcliffe
1b2f470cd6 Reorder crashpad crash simulation in VERIFY/AUDIT
so it happens after the log message rather than before
2020-06-12 18:42:40 +01:00
Klaus Basan
f8d59e7b04 [Worker] Use "m_validator->quitAndWait()" as validator now can "stop" long lasting functions 2020-06-12 18:42:40 +01:00
Klaus Basan
17ab66e50a [FSD] Added "FSD" as prefix for messages 2020-06-12 18:42:40 +01:00
Klaus Basan
077677134c [FSD] Clearer "too many lines" message 2020-06-12 18:42:40 +01:00
Klaus Basan
21068427b0 Demoted to BLACK_VERIFY_X (no ASSERT) 2020-06-12 18:42:39 +01:00
Klaus Basan
15353a1f1d Based on the Linux crash, already added some newer SIMS 2020-06-12 18:42:39 +01:00
Klaus Basan
90017f2e79 Minor style 2020-06-12 18:42:39 +01:00
Klaus Basan
a7b7998f15 [Mappimg tool] Use "showOverlayMessagesOrHTMLMessage" 2020-06-12 18:42:39 +01:00
Klaus Basan
9c01983f25 [Mappimg tool] Clear "own models" if there are NO models and hence NO "models changed" signal 2020-06-12 18:42:39 +01:00
Klaus Basan
8c2d2b0667 Floating dock widget close issue with Qt 5.14.1
see https://discordapp.com/channels/539048679160676382/539846348275449887/691667651285483564
2020-06-12 18:42:39 +01:00
Klaus Basan
76e42cc16e Minor fixes related to the SSL lib issue
https://discordapp.com/channels/539048679160676382/539925070550794240/691469857891418202
2020-06-12 18:42:39 +01:00
Klaus Basan
1e789c0951 MacOS specific message 2020-06-12 18:42:39 +01:00
Klaus Basan
4d75c1576e [XPlane] Avoid elevation requests and minor style fixes in XPlane driver 2020-06-12 18:42:39 +01:00
Klaus Basan
651e6bdacf Stop audio output for SELCAL player during shutdown 2020-06-12 18:42:39 +01:00
Klaus Basan
6841297c6e Ref T776, matching flag "ForceModeFlag" 2020-06-12 18:42:39 +01:00
Klaus Basan
fd3ad207bd [XSwiftBus] Allow to write an updated xswiftbus.conf file
In a distributed core/UI swift we need to write on XPlane side
2020-06-12 18:42:39 +01:00
Klaus Basan
80e97f749f [XSwiftBus] Misc. style fixes 2020-06-12 18:42:38 +01:00
Klaus Basan
db81acf574 [XSwiftBus] Added missing return
https://discordapp.com/channels/539048679160676382/539925070550794240/689926933642870868
2020-06-12 18:42:38 +01:00
Klaus Basan
3d1dad989e [TCAS] Fixed "mixed" values for debug/TCAS xswiftbus.conf file
Also only update if simulator XPlane is not connected, otherwise values are updated there
This allows to update the values BEFORE XPlane starts and avoids a restart
2020-06-12 18:42:38 +01:00
Klaus Basan
2607ebd7c6 Ref T776, renamed some matching settings
* the forced values did not force anything
* also adjusted UI form
2020-06-12 18:42:38 +01:00
Klaus Basan
1da66ce6e9 [Worker] Stop timer in correct thread 2020-06-12 18:42:38 +01:00
Klaus Basan
5718f95819 Tone player "myself" guard 2020-06-12 18:42:38 +01:00
Klaus Basan
5b3c011a15 Added "url" to signature "dataRead(BlackMisc::Network::CEntityFlags::Entity entity, BlackMisc::Network::CEntityFlags::ReadState state, int number, const QUrl &url)"
Allows to write log. messages with URL
2020-06-12 18:42:38 +01:00