[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: branches/KDE/3.5/kdepim/kresources/kolab/kcal
From: Allen Winter <winter () kde ! org>
Date: 2005-11-11 20:34:44
Message-ID: 1131741284.804555.19334.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 479800 by winterz:
do not pop-up the progress dialog when being accessed from a terminal.
patch written and approved by dfaure.
M +2 -1 resourcekolab.cpp
--- branches/KDE/3.5/kdepim/kresources/kolab/kcal/resourcekolab.cpp #479799:479800
@@ -161,10 +161,11 @@
const QString labelTxt = mimetype == "application/x-vnd.kolab.task" ? i18n( \
"Loading tasks..." )
: mimetype == "application/x-vnd.kolab.journal" ? i18n( \
"Loading journals..." ) : i18n( "Loading events..." );
+ const bool useProgress = qApp && qApp->type() != QApplication::Tty && count > 200;
(void)::Observer::self(); // ensure kio_uiserver is running
UIServer_stub uiserver( "kio_uiserver", "UIServer" );
int progressId = 0;
- if ( count > 200 ) {
+ if ( useProgress ) {
progressId = uiserver.newJob( kapp->dcopClient()->appId(), true );
uiserver.totalFiles( progressId, count );
uiserver.infoMessage( progressId, labelTxt );
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic