Fix wallet selector size adjustment

This commit is contained in:
Hennadii Stepanov 2019-01-14 20:49:19 +02:00
parent 035f349371
commit ca91661adf
No known key found for this signature in database
GPG key ID: 410108112E7EA81F
2 changed files with 4 additions and 0 deletions

View file

@ -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();

View file

@ -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>