Enable wordwrap for long message in passphrase dialog
authorWladimir J. van der Laan <laanwj@gmail.com>
Tue, 13 Dec 2011 15:28:56 +0000 (16:28 +0100)
committerLuke Dashjr <luke-jr+git@utopios.org>
Tue, 13 Dec 2011 17:46:58 +0000 (12:46 -0500)
- Remove explicit resizing from constructor to prevent potential hang

src/qt/askpassphrasedialog.cpp
src/qt/forms/askpassphrasedialog.ui

index a574ef9..b52acf4 100644 (file)
@@ -47,7 +47,6 @@ AskPassphraseDialog::AskPassphraseDialog(Mode mode, QWidget *parent) :
             ui->warningLabel->setText(tr("Enter the old and new passphrase to the wallet."));
             break;
     }
-    resize(minimumSize()); // Get rid of extra space in dialog
 
     textChanged();
     connect(ui->passEdit1, SIGNAL(textChanged(QString)), this, SLOT(textChanged()));
index 70d9180..3c7dac5 100644 (file)
@@ -6,8 +6,8 @@
    <rect>
     <x>0</x>
     <y>0</y>
-    <width>589</width>
-    <height>228</height>
+    <width>598</width>
+    <height>187</height>
    </rect>
   </property>
   <property name="sizePolicy">
@@ -34,6 +34,9 @@
      <property name="textFormat">
       <enum>Qt::RichText</enum>
      </property>
+     <property name="wordWrap">
+      <bool>true</bool>
+     </property>
     </widget>
    </item>
    <item>
     </layout>
    </item>
    <item>
-    <spacer name="verticalSpacer">
-     <property name="orientation">
-      <enum>Qt::Vertical</enum>
-     </property>
-     <property name="sizeHint" stdset="0">
-      <size>
-       <width>20</width>
-       <height>40</height>
-      </size>
-     </property>
-    </spacer>
-   </item>
-   <item>
     <widget class="QDialogButtonBox" name="buttonBox">
      <property name="orientation">
       <enum>Qt::Horizontal</enum>