mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 06:08:07 +00:00
Fix a crash at startup for using uninitialized settings model.
Update SDK to 5.2.8
This commit is contained in:
parent
13ca5d96cd
commit
a52890bdea
6 changed files with 15 additions and 3 deletions
|
|
@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
|
|||
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
||||
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## 5.0.5 - 2023-01-09
|
||||
|
||||
### Fixed
|
||||
- Crash at startup
|
||||
- Update SDK to 5.2.8
|
||||
|
||||
## 5.0.4 - 2022-12-28
|
||||
|
||||
### Fixed
|
||||
|
|
|
|||
|
|
@ -111,6 +111,10 @@ void CoreManager::initCoreManager(){
|
|||
emit coreManagerInitialized();
|
||||
}
|
||||
|
||||
bool CoreManager::isInitialized() const{
|
||||
return mStarted;
|
||||
}
|
||||
|
||||
AbstractEventCountNotifier * CoreManager::getEventCountNotifier(){
|
||||
return mEventCountNotifier;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -56,6 +56,7 @@ class CoreManager : public QObject {
|
|||
Q_PROPERTY(QString downloadUrl READ getDownloadUrl CONSTANT)
|
||||
Q_PROPERTY(int eventCount READ getEventCount NOTIFY eventCountChanged)
|
||||
Q_PROPERTY(int callLogsCount READ getCallLogsCount NOTIFY callLogsCountChanged)
|
||||
Q_PROPERTY(bool initialized READ isInitialized NOTIFY coreManagerInitialized)
|
||||
|
||||
public:
|
||||
bool started () const {
|
||||
|
|
@ -162,6 +163,7 @@ public:
|
|||
std::list<std::shared_ptr<linphone::Account>> getAccountList()const;
|
||||
|
||||
static bool isInstanciated(){return mInstance!=nullptr;}
|
||||
bool isInitialized() const;
|
||||
|
||||
Q_INVOKABLE bool isLastRemoteProvisioningGood();
|
||||
Q_INVOKABLE QString getUserAgent()const;
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ Item {
|
|||
}
|
||||
|
||||
MenuItem {
|
||||
visible: SettingsModel.isCheckForUpdateAvailable()
|
||||
visible: CoreManager.initialized && SettingsModel.isCheckForUpdateAvailable()
|
||||
//: 'Check for updates' : Item menu for checking updates
|
||||
text: qsTr('checkForUpdates')
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ MenuBar {
|
|||
|
||||
|
||||
MenuItem {
|
||||
visible: SettingsModel.isCheckForUpdateAvailable()
|
||||
visible: CoreManager.initialized && SettingsModel.isCheckForUpdateAvailable()
|
||||
//: 'Check for updates' : Item menu for checking updates
|
||||
text: qsTr('checkForUpdates')
|
||||
role: MenuItem.ApplicationSpecificRole
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit a7d8c15cb3c0b997b5182f680d64856a3d63a218
|
||||
Subproject commit c50ef261270294c2b87d5abdfdfe5dc0cb841726
|
||||
Loading…
Add table
Reference in a new issue