nextcloud-desktop/src/gui/tray
Michael Schuster d71249bb6e Fix crash in UserModel::currentUser() and add more sanity checks
Commit 07bede8 (PR #1892) introduced a new helper method currentUser()
that didn't check for _users.count() thus causing to throw an
"index out of range" exception when no accounts are configured.

This commit uses the opportunity to add more sanity checks to UserModel.

Signed-off-by: Michael Schuster <michael@schuster.ms>
2020-06-25 20:52:30 +02:00
..
ActivityData.cpp More typo fix 2020-01-03 13:42:07 +01:00
ActivityData.h Retreive and svg data from icon property url for activity entries 2020-01-16 14:01:54 +01:00
ActivityListModel.cpp Replace prefixing of paths with file:// by QUrl::fromLocalFile() 2020-06-09 16:45:46 +02:00
ActivityListModel.h Implemented share functionality in tray window and changed actions / button logic. 2020-04-25 10:17:53 +02:00
HeaderButton.qml Create HeaderButton QML component 2020-06-15 20:52:41 +02:00
NotificationHandler.cpp Use auto to avoiding repeating type names 2020-05-20 03:54:41 +02:00
NotificationHandler.h Retreive and svg data from icon property url for activity entries 2020-01-16 14:01:54 +01:00
UserLine.qml Don't use a bright blue color for menus 2020-06-16 18:52:20 +02:00
UserModel.cpp Fix crash in UserModel::currentUser() and add more sanity checks 2020-06-25 20:52:30 +02:00
UserModel.h Use properties to get user details 2020-06-16 15:01:37 +02:00
Window.qml Make sure the menu separator uses Style.menuBorder color 2020-06-22 06:54:57 +00:00