Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2018-11-05 13:49:15 +0300
committerOlivier Goffart <ogoffart@woboq.com>2018-11-05 13:51:29 +0300
commit7941cd4b1609088cea619079b02bf6d07a1852ce (patch)
treedefe9bacb82c63e6dc39ed64558ac098bb4b85ca /src/gui/generalsettings.cpp
parent7803ef397e8dbffc30bcb8e6e7a041405a834a56 (diff)
parent0a551b4d7f2d54e060ca501f3ffbc21623b48cf2 (diff)
Merge remote-tracking branch 'origin/2.5'
Conflicts: VERSION.cmake src/gui/generalsettings.ui src/libsync/propagateuploadng.cpp
Diffstat (limited to 'src/gui/generalsettings.cpp')
-rw-r--r--src/gui/generalsettings.cpp13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/gui/generalsettings.cpp b/src/gui/generalsettings.cpp
index dc2335ddd..6d7922d63 100644
--- a/src/gui/generalsettings.cpp
+++ b/src/gui/generalsettings.cpp
@@ -16,6 +16,7 @@
#include "ui_generalsettings.h"
#include "theme.h"
+#include "version.h"
#include "configfile.h"
#include "application.h"
#include "configfile.h"
@@ -103,12 +104,20 @@ GeneralSettings::GeneralSettings(QWidget *parent)
if (theme->appName() != QLatin1String("ownCloud") && theme->appName() != QLatin1String("testpilotcloud") ) {
#ifdef Q_OS_MAC
// Because we don't have any statusString from the SparkleUpdater anyway we can hide the whole thing
- _ui->updatesGroupBox->hide();
+ _ui->updaterWidget->hide();
#else
_ui->updateChannelLabel->hide();
_ui->updateChannel->hide();
#endif
}
+
+ _ui->versionLabel->setText("<a href='about'>" MIRALL_VERSION_STRING "</a>");
+ QObject::connect(_ui->versionLabel, &QLabel::linkActivated, this, &GeneralSettings::showAbout);
+
+ if (!theme->aboutShowCopyright()) {
+ _ui->copyrightLabelDotBefore->hide();
+ _ui->copyrightLabel->hide();
+ }
}
GeneralSettings::~GeneralSettings()
@@ -143,7 +152,7 @@ void GeneralSettings::slotUpdateInfo()
{
if (ConfigFile().skipUpdateCheck() || !Updater::instance()) {
// updater disabled on compile
- _ui->updatesGroupBox->setVisible(false);
+ _ui->updaterWidget->setVisible(false);
return;
}