[dialer] Store missed calls as missed calls

Also, the filtering was correct previously
This commit is contained in:
Martin Klapetek 2015-06-29 20:23:21 +02:00
parent fb266ed534
commit 6b78d51588
2 changed files with 10 additions and 2 deletions

View file

@ -64,7 +64,7 @@ Item {
text: i18n("Missed")
onCheckedChanged: {
if (checked) {
filterModel.filterString = "2";
filterModel.filterString = "0";
}
}
}

View file

@ -48,7 +48,15 @@ ApplicationWindow {
root.visible = true;
}
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);
}
}