ini: fixed insufficient utf8->16 alloc
This commit is contained in:
parent
adca5111f6
commit
9f7e7e30e2
2 changed files with 14 additions and 9 deletions
|
|
@ -941,11 +941,15 @@ HeaderWidget::HeaderWidget(QWidget *parent) : QWidget(parent) {
|
|||
}
|
||||
connect(channels, &QCheckBox::stateChanged, [this, parent](){
|
||||
set->setValue("show_channels", channels->isChecked(), sizeof("show_channels"));
|
||||
if(!OverseerHandler::settingsPath.empty())
|
||||
if(!OverseerHandler::settingsPath.empty()){
|
||||
set->save(OverseerHandler::settingsPath.c_str());
|
||||
if(parent)
|
||||
QCoreApplication::instance()->postEvent
|
||||
(parent, new QEvent((QEvent::Type)CustomQEvent::RecomposeMainWindow));
|
||||
}
|
||||
if(parent) {
|
||||
QEvent explosion = QEvent((QEvent::Type)CustomQEvent::RecomposeMainWindow);
|
||||
QCoreApplication::instance()->sendEvent
|
||||
(parent, &explosion);
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue