Skip to content

Commit

Permalink
Merge branch '2.5'
Browse files Browse the repository at this point in the history
  • Loading branch information
guruz committed Aug 13, 2018
2 parents 4d8dc13 + f27e537 commit b6aae66
Show file tree
Hide file tree
Showing 39 changed files with 313 additions and 251 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Expand Up @@ -103,6 +103,12 @@ version 2.5.0 (2018-08-xx)
* libocsync: Rename to ${APPLICATION_EXECUTABLE}_csync
* Don't use Qt deprecated API now that we required Qt 5.6

version 2.4.3 (2018-08-13)
* Windows: Don't ignore files with FILE_ATTRIBUTE_TEMPORARY (#6696, #6610)
* OAuth2: Fix infinite loop when the refresh token is expired
* Windows MSI: Fix crash in the auto updater
* Nautilus: Guard against None state (#6643)

version 2.4.2 (2018-07-18)
* Linux: Tray workarounds (#6545)
* Fix nautilus/nemo shell issues (#6393, #6406)
Expand Down
51 changes: 51 additions & 0 deletions mirall.desktop.in
Expand Up @@ -25,6 +25,57 @@ MimeType=application/x-@APPLICATION_EXECUTABLE@;
# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations


# Translations
Comment[oc]=@APPLICATION_NAME@ sincronizacion del client
GenericName[oc]=Dorsièr de Sincronizacion
Expand Down
2 changes: 1 addition & 1 deletion src/csync/vio/csync_vio_local_win.cpp
Expand Up @@ -182,7 +182,7 @@ std::unique_ptr<csync_file_stat_t> csync_vio_local_readdir(csync_vio_handle_t *d
}
} else if (handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_DEVICE
|| handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_OFFLINE
|| handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_TEMPORARY) {
) {
file_stat->type = ItemTypeSkip;
} else if (handle->ffd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) {
file_stat->type = ItemTypeDirectory;
Expand Down
4 changes: 3 additions & 1 deletion src/gui/application.cpp
Expand Up @@ -186,7 +186,8 @@ Application::Application(int &argc, char **argv)
setAttribute(Qt::AA_UseHighDpiPixmaps, true);

auto confDir = ConfigFile().configPath();
if (!QFileInfo(confDir).exists()) {
if (confDir.endsWith('/')) confDir.chop(1); // macOS 10.11.x does not like trailing slash for rename/move.
if (!QFileInfo(confDir).isDir()) {
// Migrate from version <= 2.4
setApplicationName(_theme->appNameGUI());
#ifndef QT_WARNING_DISABLE_DEPRECATED // Was added in Qt 5.9
Expand All @@ -197,6 +198,7 @@ Application::Application(int &argc, char **argv)
// We need to use the deprecated QDesktopServices::storageLocation because of its Qt4
// behavior of adding "data" to the path
QString oldDir = QDesktopServices::storageLocation(QDesktopServices::DataLocation);
if (oldDir.endsWith('/')) oldDir.chop(1); // macOS 10.11.x does not like trailing slash for rename/move.
QT_WARNING_POP
setApplicationName(_theme->appName());
if (QFileInfo(oldDir).isDir()) {
Expand Down
2 changes: 1 addition & 1 deletion src/gui/updater/ocupdater.cpp
Expand Up @@ -208,7 +208,7 @@ void OCUpdater::slotStartInstaller()
return QDir::toNativeSeparators(path);
};

auto msiLogFile = cfg.configPath() + "msi.log";
QString msiLogFile = cfg.configPath() + "msi.log";
QString command = QString("&{msiexec /norestart /passive /i '%1' /L*V '%2'| Out-Null ; &'%3'}")
.arg(preparePathForPowershell(updateFile))
.arg(preparePathForPowershell(msiLogFile))
Expand Down
7 changes: 4 additions & 3 deletions src/libsync/creds/httpcredentials.cpp
Expand Up @@ -379,11 +379,12 @@ bool HttpCredentials::refreshAccessToken()
QJsonParseError jsonParseError;
QJsonObject json = QJsonDocument::fromJson(jsonData, &jsonParseError).object();
QString accessToken = json["access_token"].toString();
if (reply->error() != QNetworkReply::NoError || jsonParseError.error != QJsonParseError::NoError || json.isEmpty()) {
// Network error maybe?
if (jsonParseError.error != QJsonParseError::NoError || json.isEmpty()) {
// Invalid or empty JSON: Network error maybe?
qCWarning(lcHttpCredentials) << "Error while refreshing the token" << reply->errorString() << jsonData << jsonParseError.errorString();
} else if (accessToken.isEmpty()) {
// The token is no longer valid.
// If the json was valid, but the reply did not contain an access token, the token
// is considered expired. (Usually the HTTP reply code is 400)
qCDebug(lcHttpCredentials) << "Expired refresh token. Logging out";
_refreshToken.clear();
} else {
Expand Down
2 changes: 0 additions & 2 deletions src/libsync/discoveryphase.cpp
Expand Up @@ -377,13 +377,11 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file, con
std::unique_ptr<csync_file_stat_t> file_stat(new csync_file_stat_t);
file_stat->path = file.toUtf8();
file_stat->size = -1;
file_stat->modtime = -1;
propertyMapToFileStat(map, file_stat.get());
if (file_stat->type == ItemTypeDirectory)
file_stat->size = 0;
if (file_stat->type == ItemTypeSkip
|| file_stat->size == -1
|| file_stat->modtime == -1
|| file_stat->remotePerm.isNull()
|| file_stat->etag.isEmpty()
|| file_stat->file_id.isEmpty()) {
Expand Down
2 changes: 1 addition & 1 deletion src/libsync/theme.cpp
Expand Up @@ -141,7 +141,7 @@ QIcon Theme::themeIcon(const QString &name, bool sysTray, bool sysTrayMenuVisibl
}

QList<int> sizes;
sizes << 16 << 22 << 32 << 48 << 64 << 128 << 256;
sizes << 16 << 22 << 32 << 48 << 64 << 128 << 256 << 512 << 1024;
foreach (int size, sizes) {
QString pixmapName = QString::fromLatin1(":/client/theme/%1/%2-%3.png").arg(flavor).arg(name).arg(size);
if (QFile::exists(pixmapName)) {
Expand Down
14 changes: 7 additions & 7 deletions translations/client_ca.ts
Expand Up @@ -599,17 +599,17 @@
<translation>Continua</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="253"/>
<location filename="../src/gui/application.cpp" line="255"/>
<source>Error accessing the configuration file</source>
<translation>S&apos;ha produït un error en accedir al fitxer de configuració</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="254"/>
<location filename="../src/gui/application.cpp" line="256"/>
<source>There was an error while accessing the configuration file at %1.</source>
<translation>Hi ha hagut un error en accedir al fitxer de configuració a %1.</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="257"/>
<location filename="../src/gui/application.cpp" line="259"/>
<source>Quit ownCloud</source>
<translation>Surt de l&apos;ownCloud</translation>
</message>
Expand Down Expand Up @@ -681,15 +681,15 @@
<context>
<name>OCC::DiscoveryMainThread</name>
<message>
<location filename="../src/libsync/discoveryphase.cpp" line="629"/>
<location filename="../src/libsync/discoveryphase.cpp" line="627"/>
<source>Aborted by the user</source>
<translation>Aturat per l&apos;usuari</translation>
</message>
</context>
<context>
<name>OCC::DiscoverySingleDirectoryJob</name>
<message>
<location filename="../src/libsync/discoveryphase.cpp" line="390"/>
<location filename="../src/libsync/discoveryphase.cpp" line="388"/>
<source>The server file discovery reply is missing data.</source>
<translation type="unfinished"/>
</message>
Expand Down Expand Up @@ -3417,12 +3417,12 @@ This is a new, experimental mode. If you decide to use it, please report any iss
<translation type="unfinished"/>
</message>
<message>
<location filename="../src/libsync/syncengine.cpp" line="1695"/>
<location filename="../src/libsync/syncengine.cpp" line="1687"/>
<source>Disk space is low: Downloads that would reduce free space below %1 were skipped.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../src/libsync/syncengine.cpp" line="1702"/>
<location filename="../src/libsync/syncengine.cpp" line="1694"/>
<source>There is insufficient space available on the server for some uploads.</source>
<translation type="unfinished"/>
</message>
Expand Down
14 changes: 7 additions & 7 deletions translations/client_cs.ts
Expand Up @@ -599,17 +599,17 @@
<translation>Pokračovat</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="253"/>
<location filename="../src/gui/application.cpp" line="255"/>
<source>Error accessing the configuration file</source>
<translation>Chyba přístupu ke konfiguračnímu souboru</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="254"/>
<location filename="../src/gui/application.cpp" line="256"/>
<source>There was an error while accessing the configuration file at %1.</source>
<translation>Došlo k chybě při přístupu ke konfigurační soubor %1.</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="257"/>
<location filename="../src/gui/application.cpp" line="259"/>
<source>Quit ownCloud</source>
<translation>Ukončit ownCloud</translation>
</message>
Expand Down Expand Up @@ -681,15 +681,15 @@
<context>
<name>OCC::DiscoveryMainThread</name>
<message>
<location filename="../src/libsync/discoveryphase.cpp" line="629"/>
<location filename="../src/libsync/discoveryphase.cpp" line="627"/>
<source>Aborted by the user</source>
<translation>Zrušeno uživatelem</translation>
</message>
</context>
<context>
<name>OCC::DiscoverySingleDirectoryJob</name>
<message>
<location filename="../src/libsync/discoveryphase.cpp" line="390"/>
<location filename="../src/libsync/discoveryphase.cpp" line="388"/>
<source>The server file discovery reply is missing data.</source>
<translation type="unfinished"/>
</message>
Expand Down Expand Up @@ -3420,12 +3420,12 @@ This is a new, experimental mode. If you decide to use it, please report any iss
<translation>Není povoleno, protože nemáte oprávnění přidávat soubory do tohoto adresáře</translation>
</message>
<message>
<location filename="../src/libsync/syncengine.cpp" line="1695"/>
<location filename="../src/libsync/syncengine.cpp" line="1687"/>
<source>Disk space is low: Downloads that would reduce free space below %1 were skipped.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../src/libsync/syncengine.cpp" line="1702"/>
<location filename="../src/libsync/syncengine.cpp" line="1694"/>
<source>There is insufficient space available on the server for some uploads.</source>
<translation type="unfinished"/>
</message>
Expand Down
14 changes: 7 additions & 7 deletions translations/client_de.ts
Expand Up @@ -599,17 +599,17 @@
<translation>Fortsetzen</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="253"/>
<location filename="../src/gui/application.cpp" line="255"/>
<source>Error accessing the configuration file</source>
<translation>Fehler beim Zugriff auf die Konfigurationsdatei</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="254"/>
<location filename="../src/gui/application.cpp" line="256"/>
<source>There was an error while accessing the configuration file at %1.</source>
<translation>Es ist ein Fehler beim Zugriff auf die Konfigurationsdatei unter %1 aufgetreten.</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="257"/>
<location filename="../src/gui/application.cpp" line="259"/>
<source>Quit ownCloud</source>
<translation>ownCloud verlassen</translation>
</message>
Expand Down Expand Up @@ -681,15 +681,15 @@
<context>
<name>OCC::DiscoveryMainThread</name>
<message>
<location filename="../src/libsync/discoveryphase.cpp" line="629"/>
<location filename="../src/libsync/discoveryphase.cpp" line="627"/>
<source>Aborted by the user</source>
<translation>Abbruch durch den Benutzer</translation>
</message>
</context>
<context>
<name>OCC::DiscoverySingleDirectoryJob</name>
<message>
<location filename="../src/libsync/discoveryphase.cpp" line="390"/>
<location filename="../src/libsync/discoveryphase.cpp" line="388"/>
<source>The server file discovery reply is missing data.</source>
<translation>Es fehlen Daten der Server-Antwort zur Dateisuche</translation>
</message>
Expand Down Expand Up @@ -3430,12 +3430,12 @@ Dies ist ein neuer experimenteller Modus.Wenn du dich dafür entscheidest, diese
<translation>Nicht erlaubt, da Sie keine Rechte zum Hinzufügen von Dateien in diesen Ordner haben</translation>
</message>
<message>
<location filename="../src/libsync/syncengine.cpp" line="1695"/>
<location filename="../src/libsync/syncengine.cpp" line="1687"/>
<source>Disk space is low: Downloads that would reduce free space below %1 were skipped.</source>
<translation>Der freie Speicherplatz wird knapp: Downloads, die den freien Speicher unter %1 senken, wurden ausgelassen.</translation>
</message>
<message>
<location filename="../src/libsync/syncengine.cpp" line="1702"/>
<location filename="../src/libsync/syncengine.cpp" line="1694"/>
<source>There is insufficient space available on the server for some uploads.</source>
<translation>Auf dem Server ist für einige Dateien zum Hochladen nicht genug Platz.</translation>
</message>
Expand Down
14 changes: 7 additions & 7 deletions translations/client_el.ts
Expand Up @@ -599,17 +599,17 @@
<translation>Συνέχεια</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="253"/>
<location filename="../src/gui/application.cpp" line="255"/>
<source>Error accessing the configuration file</source>
<translation>Σφάλμα πρόσβασης στο αρχείο ρυθμίσεων</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="254"/>
<location filename="../src/gui/application.cpp" line="256"/>
<source>There was an error while accessing the configuration file at %1.</source>
<translation>Υπήρξε σφάλμα κατά την πρόσβαση του αρχείου ρυθμίσεων στο %1</translation>
</message>
<message>
<location filename="../src/gui/application.cpp" line="257"/>
<location filename="../src/gui/application.cpp" line="259"/>
<source>Quit ownCloud</source>
<translation>Έξοδος ownCloud</translation>
</message>
Expand Down Expand Up @@ -681,15 +681,15 @@
<context>
<name>OCC::DiscoveryMainThread</name>
<message>
<location filename="../src/libsync/discoveryphase.cpp" line="629"/>
<location filename="../src/libsync/discoveryphase.cpp" line="627"/>
<source>Aborted by the user</source>
<translation>Ματαιώθηκε από το χρήστη</translation>
</message>
</context>
<context>
<name>OCC::DiscoverySingleDirectoryJob</name>
<message>
<location filename="../src/libsync/discoveryphase.cpp" line="390"/>
<location filename="../src/libsync/discoveryphase.cpp" line="388"/>
<source>The server file discovery reply is missing data.</source>
<translation type="unfinished"/>
</message>
Expand Down Expand Up @@ -3422,12 +3422,12 @@ This is a new, experimental mode. If you decide to use it, please report any iss
<translation>Δεν επιτρέπεται επειδή δεν έχετε δικαιώματα να προσθέσετε αρχεία σε αυτόν τον φάκελο</translation>
</message>
<message>
<location filename="../src/libsync/syncengine.cpp" line="1695"/>
<location filename="../src/libsync/syncengine.cpp" line="1687"/>
<source>Disk space is low: Downloads that would reduce free space below %1 were skipped.</source>
<translation type="unfinished"/>
</message>
<message>
<location filename="../src/libsync/syncengine.cpp" line="1702"/>
<location filename="../src/libsync/syncengine.cpp" line="1694"/>
<source>There is insufficient space available on the server for some uploads.</source>
<translation type="unfinished"/>
</message>
Expand Down

0 comments on commit b6aae66

Please sign in to comment.