diff --git a/src/breakpad/CrashReporter/CrashReporter.cpp b/src/breakpad/CrashReporter/CrashReporter.cpp index 42b6a4927..bee66b0ea 100644 --- a/src/breakpad/CrashReporter/CrashReporter.cpp +++ b/src/breakpad/CrashReporter/CrashReporter.cpp @@ -66,17 +66,17 @@ CrashReporter::CrashReporter( const QStringList& args ) m_minidump = m_dir + '/' + args.value( 2 ) + ".dmp"; m_product_name = args.value( 3 ); - setFixedSize( sizeHint() ); - //hide until "send report" has been clicked ui.progressBar->setVisible( false ); ui.button->setVisible( false ); ui.progressLabel->setVisible( false ); - connect( ui.sendButton, SIGNAL( clicked() ), SLOT( onSendButton() )); - + connect( ui.sendButton, SIGNAL( clicked() ), SLOT( onSendButton() ) ); + adjustSize(); + setFixedSize( size() ); } + CrashReporter::~CrashReporter() { delete m_http; @@ -186,6 +186,7 @@ CrashReporter::onFail( int error, const QString& errorString ) qDebug() << "Error:" << error << errorString; } + void CrashReporter::onSendButton() { @@ -194,5 +195,9 @@ CrashReporter::onSendButton() ui.progressLabel->setVisible( true ); ui.sendButton->setEnabled( false ); ui.dontSendButton->setEnabled( false ); + + adjustSize(); + setFixedSize( size() ); + QTimer::singleShot( 0, this, SLOT( send() ) ); } diff --git a/src/breakpad/CrashReporter/CrashReporter.ui b/src/breakpad/CrashReporter/CrashReporter.ui index 8cfe575fb..8d2cfed64 100644 --- a/src/breakpad/CrashReporter/CrashReporter.ui +++ b/src/breakpad/CrashReporter/CrashReporter.ui @@ -9,8 +9,8 @@ 0 0 - 438 - 246 + 376 + 216