Skip to content

Commit

Permalink
Show user name for connection in statusdialog
Browse files Browse the repository at this point in the history
Move server version purely to tooltip.

Fixes issue #8.
  • Loading branch information
Daniel Molkentin committed Nov 2, 2012
1 parent 0de3ae3 commit 46a82b6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/mirall/statusdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#include "mirall/folder.h"
#include "mirall/theme.h"
#include "mirall/owncloudinfo.h"
#include "mirall/mirallconfigfile.h"

#include <QtCore>
#include <QtGui>
Expand Down Expand Up @@ -448,10 +449,11 @@ void StatusDialog::slotOCInfo( const QString& url, const QString& versionStr, co

qDebug() << "#-------# oC found on " << url;
/* enable the open button */
MirallConfigFile cfg;
_ocUrlLabel->setOpenExternalLinks(true);
_ocUrlLabel->setText( tr("Connected to <a href=\"%1\">%2</a>, server version %3")
.arg(url).arg(url).arg(versionStr) );
_ocUrlLabel->setToolTip( tr("Version: %1").arg(version));
_ocUrlLabel->setText( tr("Connected to <a href=\"%1\">%1</a> as <i>%2</i>.")
.arg(url).arg(cfg.ownCloudUser()) );
_ocUrlLabel->setToolTip( tr("Version: %1 (%2)").arg(versionStr).arg(version));
_ButtonAdd->setEnabled(true);

disconnect(ownCloudInfo::instance(), SIGNAL(ownCloudInfoFound(const QString&, const QString&, const QString&, const QString&)),
Expand Down

0 comments on commit 46a82b6

Please sign in to comment.