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:
authorChristian Kamm <mail@ckamm.de>2018-01-04 15:53:27 +0300
committerckamm <mail@ckamm.de>2018-01-05 10:44:27 +0300
commit7aa9af08c35e5e777858f2a2c5e8b247e2601f40 (patch)
treea0bbd8c81e26052ba14b569166c55c735e2fa17d /src/gui/issueswidget.h
parent15803d18379296abc83e17d448d50a9165eba835 (diff)
Issues: Speed up insertion and add hard upper limit #6272
Since sorting was enabled permanenty the list would be resorted with each inserted issue. When inserting thousands of ignored files that would make the whole ui freeze up. Instead, sorting is disabled for inserts now and is reenabled after some time has passed. That way users usually see the sorted view without the lockups. Also, there's now a maximum of 50k issue entries.
Diffstat (limited to 'src/gui/issueswidget.h')
-rw-r--r--src/gui/issueswidget.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/issueswidget.h b/src/gui/issueswidget.h
index 4accd89b2..56f4900d9 100644
--- a/src/gui/issueswidget.h
+++ b/src/gui/issueswidget.h
@@ -18,6 +18,7 @@
#include <QDialog>
#include <QDateTime>
#include <QLocale>
+#include <QTimer>
#include "progressdispatcher.h"
#include "owncloudgui.h"
@@ -84,6 +85,9 @@ private:
/// Wipes all insufficient remote storgage blacklist entries
void retryInsufficentRemoteStorageErrors(const QString &folderAlias);
+ /// Each insert disables sorting, this timer reenables it
+ QTimer _reenableSorting;
+
Ui::IssuesWidget *_ui;
};
}