Skip to content

Commit ca91661

Browse files
committed
Fix wallet selector size adjustment
1 parent 035f349 commit ca91661

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/qt/bitcoingui.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -485,6 +485,7 @@ void BitcoinGUI::createToolBars()
485485
toolbar->addWidget(spacer);
486486

487487
m_wallet_selector = new QComboBox();
488+
m_wallet_selector->setSizeAdjustPolicy(QComboBox::AdjustToContents);
488489
connect(m_wallet_selector, static_cast<void (QComboBox::*)(int)>(&QComboBox::currentIndexChanged), this, &BitcoinGUI::setCurrentWalletBySelectorIndex);
489490

490491
m_wallet_selector_label = new QLabel();

src/qt/forms/debugwindow.ui

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,9 @@
453453
</item>
454454
<item>
455455
<widget class="QComboBox" name="WalletSelector">
456+
<property name="sizeAdjustPolicy">
457+
<enum>QComboBox::AdjustToContents</enum>
458+
</property>
456459
<item>
457460
<property name="text">
458461
<string>(none)</string>

0 commit comments

Comments
 (0)