* fix QComboBox popup leaking shortcuts

This commit is contained in:
Garux
2023-07-03 12:26:20 +06:00
parent 2b3a34b299
commit 7396eef067
4 changed files with 28 additions and 8 deletions

View File

@@ -41,8 +41,8 @@
#include <QButtonGroup>
#include <QRadioButton>
#include <QFrame>
#include <QComboBox>
#include "gtkutil/spinbox.h"
#include "gtkutil/combobox.h"
/*--------------------------------
@@ -258,7 +258,7 @@ bool DoDoorsBox( DoorRS* rs ){
auto form = new QFormLayout( &dialog );
form->setSizeConstraint( QLayout::SizeConstraint::SetFixedSize );
{
form->addRow( "Door Front/Back Texture", comboMain = new QComboBox );
form->addRow( "Door Front/Back Texture", comboMain = new ComboBox );
char buffer[256];
comboMain->addItems( LoadListStore( GetFilename( buffer, "bt/door-tex.txt" ) ) );
comboMain->setEditable( true );
@@ -272,7 +272,7 @@ bool DoDoorsBox( DoorRS* rs ){
checkScaleMainV->setChecked( true );
}
{
form->addRow( "Door Trim Texture", comboTrim = new QComboBox );
form->addRow( "Door Trim Texture", comboTrim = new ComboBox );
char buffer[256];
comboTrim->addItems( LoadListStore( GetFilename( buffer, "bt/door-tex-trim.txt" ) ) );
comboTrim->setEditable( true );