diff --git a/res/icon/default-community-image.png b/res/icon/default-community-image.png new file mode 100644 index 0000000..0570ce5 Binary files /dev/null and b/res/icon/default-community-image.png differ diff --git a/res/res.qrc b/res/res.qrc index 743f0c5..1784c7d 100644 --- a/res/res.qrc +++ b/res/res.qrc @@ -2,5 +2,6 @@ icon/application-x-desktop.png icon/pad_mainpower.svg + icon/default-community-image.png diff --git a/src/utils/sidebar-button-utils.cpp b/src/utils/sidebar-button-utils.cpp index ccd1ca1..a8445a4 100644 --- a/src/utils/sidebar-button-utils.cpp +++ b/src/utils/sidebar-button-utils.cpp @@ -52,7 +52,7 @@ QString SidebarButtonUtils::getRealName() QString SidebarButtonUtils::getIconFile() { - if (m_currentUserInfo.iconFile.isEmpty()) { + if (m_currentUserInfo.iconFile.isEmpty() || m_currentUserInfo.iconFile.endsWith("/.face")) { return {DEFAULT_USER_ICON_FILE}; }