mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Fix style
This commit is contained in:
parent
713a429675
commit
635d2b2da2
1 changed files with 10 additions and 10 deletions
|
@ -114,22 +114,22 @@ private slots:
|
|||
|
||||
void testVersionOfInstalledBinary()
|
||||
{
|
||||
if( isLinux() ) {
|
||||
if ( qgetenv("DISPLAY").isEmpty() ) {
|
||||
if (isLinux()) {
|
||||
if (qgetenv("DISPLAY").isEmpty()) {
|
||||
// Current requires an X-Server
|
||||
return;
|
||||
}
|
||||
// pass the binary name owncloud to the next call. This brakes branding,
|
||||
// but branding is not supposed to work with this.
|
||||
QString ver = versionOfInstalledBinary(OWNCLOUD_BIN_PATH+QLatin1String("/nextcloud"));
|
||||
qDebug() << "Version of installed Nextcloud: " << ver;
|
||||
QVERIFY( !ver.isEmpty());
|
||||
QString ver = versionOfInstalledBinary(OWNCLOUD_BIN_PATH + QLatin1String("/nextcloud"));
|
||||
qDebug() << "Version of installed Nextcloud: " << ver;
|
||||
QVERIFY(!ver.isEmpty());
|
||||
|
||||
QRegExp rx( R"(Nextcloud version \d+\.\d+\.\d+.*)" );
|
||||
QVERIFY( rx.exactMatch(ver));
|
||||
} else {
|
||||
QVERIFY( versionOfInstalledBinary().isEmpty());
|
||||
}
|
||||
QRegExp rx(R"(Nextcloud version \d+\.\d+\.\d+.*)");
|
||||
QVERIFY(rx.exactMatch(ver));
|
||||
} else {
|
||||
QVERIFY(versionOfInstalledBinary().isEmpty());
|
||||
}
|
||||
}
|
||||
|
||||
void testTimeAgo()
|
||||
|
|
Loading…
Reference in a new issue