Check for a remote connection and change our update frequency accordingly,

similar to the GTK version.

svn path=/trunk/; revision=45941
This commit is contained in:
Gerald Combs 2012-11-05 22:43:15 +00:00
parent 76eae90c57
commit 091aabbd6c
1 changed files with 6 additions and 1 deletions

View File

@ -27,6 +27,7 @@
#include <QPainter>
#include "ui/util.h"
#include "ui/utf8_entities.h"
#include "tango_colors.h"
@ -36,7 +37,7 @@
/*
* Update frequency for the splash screen, given in milliseconds.
*/
const int info_update_freq_ = 50;
int info_update_freq_ = 50;
void splash_update(register_action_e action, const char *message, void *dummy) {
Q_UNUSED(dummy);
@ -87,6 +88,10 @@ SplashOverlay::SplashOverlay(QWidget *parent) :
"}"
));
// Check for a remote connection
if (get_conn_cfilter() != NULL)
info_update_freq_ = 1000;
connect(wsApp, SIGNAL(splashUpdate(register_action_e,const char*)),
this, SLOT(splashUpdate(register_action_e,const char*)));
}