Fix to last commit

This commit is contained in:
Christophe Dumez 2010-09-25 19:40:31 +00:00
parent ef01088411
commit b5b06ce36d

View file

@ -138,7 +138,8 @@ void torrentAdditionDialog::limitDialogWidth() {
QRect desk(QApplication::desktop()->availableGeometry(scrn)); QRect desk(QApplication::desktop()->availableGeometry(scrn));
int max_width = desk.width(); int max_width = desk.width();
setMaximumWidth(max_width); if(max_width > 0)
setMaximumWidth(max_width);
} }
void torrentAdditionDialog::hideTorrentContent() { void torrentAdditionDialog::hideTorrentContent() {