Skip to content

Commit

Permalink
Fix wallet selector size adjustment
Browse files Browse the repository at this point in the history
  • Loading branch information
hebasto committed Jan 14, 2019
1 parent 035f349 commit ca91661
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/qt/bitcoingui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ void BitcoinGUI::createToolBars()
toolbar->addWidget(spacer);

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

m_wallet_selector_label = new QLabel();
Expand Down
3 changes: 3 additions & 0 deletions src/qt/forms/debugwindow.ui
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,9 @@
</item>
<item>
<widget class="QComboBox" name="WalletSelector">
<property name="sizeAdjustPolicy">
<enum>QComboBox::AdjustToContents</enum>
</property>
<item>
<property name="text">
<string>(none)</string>
Expand Down

0 comments on commit ca91661

Please sign in to comment.