From b5b06ce36d29a44fc1867e3a8c01de490098917b Mon Sep 17 00:00:00 2001 From: Christophe Dumez Date: Sat, 25 Sep 2010 19:40:31 +0000 Subject: [PATCH] Fix to last commit --- src/torrentadditiondlg.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/torrentadditiondlg.cpp b/src/torrentadditiondlg.cpp index ab657abc0..d5a678bc8 100644 --- a/src/torrentadditiondlg.cpp +++ b/src/torrentadditiondlg.cpp @@ -138,7 +138,8 @@ void torrentAdditionDialog::limitDialogWidth() { QRect desk(QApplication::desktop()->availableGeometry(scrn)); int max_width = desk.width(); - setMaximumWidth(max_width); + if(max_width > 0) + setMaximumWidth(max_width); } void torrentAdditionDialog::hideTorrentContent() {