summaryrefslogtreecommitdiffstats
path: root/desktop-widgets/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'desktop-widgets/mainwindow.cpp')
-rw-r--r--desktop-widgets/mainwindow.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index 5cf3dc27f..26c67a261 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -78,6 +78,8 @@ extern "C" int updateProgress(const char *text)
if (progressDialog) {
progressDialog->setLabelText(text);
progressDialog->setValue(++progressCounter);
+ int width = QFontMetrics(qApp->font()).width(text) + 100;
+ progressDialog->resize(width, progressDialog->height());
if (progressCounter == 100)
progressCounter = 0; // yes this is silly, but we really don't know how long it will take
}