fix: warnings when compiling with Qt 6.10 (#6422)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "Application.hpp"
|
||||
#include "common/Args.hpp"
|
||||
#include "common/QLogging.hpp"
|
||||
#include "controllers/commands/CommandController.hpp"
|
||||
#include "controllers/hotkeys/HotkeyController.hpp"
|
||||
#include "singletons/Settings.hpp"
|
||||
@@ -47,7 +48,11 @@ SettingsDialog::SettingsDialog(QWidget *parent)
|
||||
this->resize(915, 600);
|
||||
this->themeChangedEvent();
|
||||
QFile styleFile(":/qss/settings.qss");
|
||||
styleFile.open(QFile::ReadOnly);
|
||||
if (!styleFile.open(QFile::ReadOnly))
|
||||
{
|
||||
assert(false && "Resources not loaded");
|
||||
qCWarning(chatterinoWidget) << "Resources not loaded";
|
||||
}
|
||||
QString stylesheet = QString::fromUtf8(styleFile.readAll());
|
||||
this->setStyleSheet(stylesheet);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user