Commit 6b78d515 authored by Martin Klapetek's avatar Martin Klapetek

[dialer] Store missed calls as missed calls

Also, the filtering was correct previously
parent fb266ed5
......@@ -64,7 +64,7 @@ Item {
text: i18n("Missed")
onCheckedChanged: {
if (checked) {
filterModel.filterString = "2";
filterModel.filterString = "0";
}
}
}
......
......@@ -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);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment