mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-08-02 17:54:45 +00:00
[dialer] Store missed calls as missed calls
Also, the filtering was correct previously
This commit is contained in:
parent
fb266ed534
commit
6b78d51588
2 changed files with 10 additions and 2 deletions
|
|
@ -64,7 +64,7 @@ Item {
|
||||||
text: i18n("Missed")
|
text: i18n("Missed")
|
||||||
onCheckedChanged: {
|
onCheckedChanged: {
|
||||||
if (checked) {
|
if (checked) {
|
||||||
filterModel.filterString = "2";
|
filterModel.filterString = "0";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,15 @@ ApplicationWindow {
|
||||||
root.visible = true;
|
root.visible = true;
|
||||||
}
|
}
|
||||||
onCallEnded: {
|
onCallEnded: {
|
||||||
insertCallInHistory(callContactNumber, callDuration, isIncomingCall ? 1 : 2);
|
var callType;
|
||||||
|
if (isIncomingCall && callDuration == 0) {
|
||||||
|
callType = 0;
|
||||||
|
} else if (isIncomingCall && callDuration > 0) {
|
||||||
|
callType = 1;
|
||||||
|
} else {
|
||||||
|
callType = 2;
|
||||||
|
}
|
||||||
|
insertCallInHistory(callContactNumber, callDuration, callType);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue