diff options
author | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2021-05-27 12:19:28 +0200 |
---|---|---|
committer | Jan Holthuis <jan.holthuis@ruhr-uni-bochum.de> | 2021-05-27 12:23:56 +0200 |
commit | f78f50026692a8c03f59176c1df26790f873eb36 (patch) | |
tree | edbe4b5af6b40680160f22ae7726029ca82a8b4d | |
parent | d84e928c91bf101a142b75925ad76ea91a7d7d14 (diff) |
DlgPrefInterface: Fix crash if no skin is available
-rw-r--r-- | src/preferences/dialog/dlgprefinterface.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/preferences/dialog/dlgprefinterface.cpp b/src/preferences/dialog/dlgprefinterface.cpp index af4f2093b2..8e40ab5f3a 100644 --- a/src/preferences/dialog/dlgprefinterface.cpp +++ b/src/preferences/dialog/dlgprefinterface.cpp @@ -40,6 +40,11 @@ DlgPrefInterface::DlgPrefInterface( m_bRebootMixxxView(false) { setupUi(this); + VERIFY_OR_DEBUG_ASSERT(m_pSkin != nullptr) { + qWarning() << "Skipping creation of DlgPrefInterface because there is no skin available."; + return; + } + // Locale setting // Iterate through the available locales and add them to the combobox // Borrowed following snippet from http://qt-project.org/wiki/How_to_create_a_multi_language_application |