diff --git a/libnotificationmanager/notificationsortproxymodel.cpp b/libnotificationmanager/notificationsortproxymodel.cpp index 666ecabb6..fe66bbe41 100644 --- a/libnotificationmanager/notificationsortproxymodel.cpp +++ b/libnotificationmanager/notificationsortproxymodel.cpp @@ -113,15 +113,8 @@ bool NotificationSortProxyModel::lessThan(const QModelIndex &source_left, const } if (scoreLeft == scoreRight) { - QDateTime timeLeft = source_left.data(Notifications::UpdatedRole).toDateTime(); - if (!timeLeft.isValid()) { - timeLeft = source_left.data(Notifications::CreatedRole).toDateTime(); - } - - QDateTime timeRight = source_right.data(Notifications::UpdatedRole).toDateTime(); - if (!timeRight.isValid()) { - timeRight = source_right.data(Notifications::CreatedRole).toDateTime(); - } + const QDateTime timeLeft = source_left.data(Notifications::CreatedRole).toDateTime(); + const QDateTime timeRight = source_right.data(Notifications::CreatedRole).toDateTime(); if (m_sortOrder == Qt::DescendingOrder) { return timeLeft > timeRight; diff --git a/templates/ion-dataengine/src/ion-%{APPNAMELC}.desktop b/templates/ion-dataengine/src/ion-%{APPNAMELC}.desktop index 43df40ee5..405e98673 100644 --- a/templates/ion-dataengine/src/ion-%{APPNAMELC}.desktop +++ b/templates/ion-dataengine/src/ion-%{APPNAMELC}.desktop @@ -1,7 +1,5 @@ [Desktop Entry] Name=%{APPNAME} Weather Data Provider -Name[ca]=Proveïdor de dades meteorològiques de %{APPNAME} -Name[ca@valencia]=Proveïdor de dades meteorològiques de %{APPNAME} Name[da]=%{APPNAME} vejrdata-udbyder Name[de]=%{APPNAME}-Wetterdatenanbieter Name[el]=%{APPNAME} Πάροχος δεδομένων καιρού @@ -14,28 +12,20 @@ Name[fr]=%{APPNAME} Fournisseur de données météorologiques Name[gl]=Fornecedor de datos meteorolóxicos %{APPNAME} Name[he]=ספק מזג האוויר %{APPNAME} Name[hu]=%{APPNAME} időjárásadat-szolgáltató -Name[id]=Penyedia Data Cuaca %{APPNAME} Name[is]=%{APPNAME} veðurgagnaþjónusta Name[it]=Fornitore di dati meteo di %{APPNAME} Name[ko]=%{APPNAME} 날씨 데이터 공급자 Name[lt]=Orų informacija iš %{APPNAME} Name[nl]=%{APPNAME} Leverancier van weergegevens -Name[nn]=%{APPNAME} vêrdataleverandør Name[pa]=%{APPNAME} ਮੌਸਮ ਡਾਟਾ ਦੇਣ ਵਾਲਾ Name[pl]=%{APPNAME} - dostawca danych pogodowych -Name[pt]=Fornecedor de Dados Meteorológicos do %{APPNAME} -Name[pt_BR]=Fornecedor de dados meteorológicos do %{APPNAME} Name[ru]=Источник данных о погоде %{APPNAME} Name[sk]=%{APPNAME} poskytovateľ údajov počasia Name[sl]=Ponudnik podatkov za vreme %{APPNAME} Name[sv]=%{APPNAME} väderdataleverantör Name[tr]=%{APPNAME} Hava Durumu Veri Sağlayıcısı Name[uk]=Засіб надання даних щодо погоди %{APPNAME} -Name[x-test]=xx%{APPNAME} Weather Data Providerxx -Name[zh_TW]=%{APPNAME} 天氣資料提供者 Comment=Access to the weather data provider %{APPNAME} -Comment[ca]=Accés al proveïdor de dades meteorològiques de %{APPNAME} -Comment[ca@valencia]=Accés al proveïdor de dades meteorològiques de %{APPNAME} Comment[da]=Adgang til vejrdata-udbyderen %{APPNAME} Comment[de]=Zugriff auf den Wetterdatenanbieter %{APPNAME} Comment[el]=Πρόσβαση στον πάροχο δεδομένων καιρού %{APPNAME} @@ -48,24 +38,18 @@ Comment[fr]=Accès au fournisseur de données météorologiques %{APPNAME} Comment[gl]=Acceder ao fornecedor de datos meteorolóxicos %{APPNAME}. Comment[he]=גישה למספק מזג האוויר %{APPNAME} Comment[hu]=Hpzzáférés a(z) %{APPNAME} időjárási adataihoz -Comment[id]=Akses ke penyedia data cuaca %{APPNAME} Comment[is]=Aðgangur að veðurgagnaþjónustunni %{APPNAME} -Comment[it]=Accesso al fornitore di dati meteo di %{APPNAME} +Comment[it]=Accedi al fornitore di dati meteo di %{APPNAME} Comment[ko]=날씨 데이터 공급자 %{APPNAME}에 접근 Comment[lt]=Apsilankyti pas orų informacijos teikėją %{APPNAME} Comment[nl]=Toegang tot de leverancier van weergegevens %{APPNAME} -Comment[nn]=Tilgang til vêrdataleverandøren %{APPNAME} Comment[pl]=Połącz się z dostawcą danych pogodowych %{APPNAME} -Comment[pt]=Acesso ao fornecedor de dados meteorológicos do %{APPNAME} -Comment[pt_BR]=Acesso ao fornecedor de dados meteorológicos do %{APPNAME} Comment[ru]=Доступ к поставщику данных о погоде %{APPNAME} Comment[sk]=Prístup k poskytovateľovi údajov počasia %{APPNAME} Comment[sl]=Dostop do ponudnika podatkov za vreme %{APPNAME} Comment[sv]=Åtkomst till väderdataleverantören %{APPNAME} Comment[tr]=Hava durumu verileri sağlayıcısı %{APPNAME} erişimi Comment[uk]=Доступ до засобу надання даних щодо погоди %{APPNAME} -Comment[x-test]=xxAccess to the weather data provider %{APPNAME}xx -Comment[zh_TW]=存取天氣資料提供者 %{APPNAME} X-KDE-ServiceTypes=Plasma/DataEngine X-KDE-ParentApp=weatherengine Type=Service