File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 22
33## 26.4.17
44
5+ - Fixed sorting by the **Trashed** date in the **Locally trashed notes** dialog,
6+ which could be ordered incorrectly because the internal millisecond
7+ timestamps were compared as truncated 32-bit integers instead of full 64-bit
8+ values (for [#3573](https://github.com/pbek/QOwnNotes/issues/3573))
59- Renamed the **Local trash** settings page to **Trash**, added a Qt 5.15+
610 **trash mode** selector for **No trashing**, **System trash**, and
711 **Local trash**, switched note deletion to `QFile::moveToTrash()` when
Original file line number Diff line number Diff line change @@ -21,7 +21,8 @@ class LocalTrashTreeWidgetItem : public QTreeWidgetItem {
2121
2222 // allow sorting for the date column
2323 if (column == 1 ) {
24- return data (column, Qt::UserRole).toInt () < other.data (column, Qt::UserRole).toInt ();
24+ return data (column, Qt::UserRole).toLongLong () <
25+ other.data (column, Qt::UserRole).toLongLong ();
2526 }
2627
2728 return text (column).toLower () < other.text (column).toLower ();
You can’t perform that action at this time.
0 commit comments