Skip to content

Commit

Permalink
Merge pull request #3918 from Holzhaus/dlgprefinterface-crash-fix
Browse files Browse the repository at this point in the history
DlgPrefInterface: Fix crash if no skin is available
  • Loading branch information
daschuer authored May 27, 2021
2 parents 0b3446d + f78f500 commit 37bf204
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/preferences/dialog/dlgprefinterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 37bf204

Please sign in to comment.