Commit 00593d1d authored by Edric Milaret's avatar Edric Milaret

im: only add to smartlist if enter is pressed on search field

Change-Id: I11b1140372b37f7b06520ea3d2c58a22c6096d6a
Tuleap: #242
parent 00a3225b
......@@ -558,7 +558,10 @@ CallWidget::historicButton_clicked(bool checked)
void
CallWidget::on_ringContactLineEdit_returnPressed()
{
placeCall();
auto cm = PhoneDirectoryModel::instance().getNumber(ui->ringContactLineEdit->text());
time_t currentTime;
::time(&currentTime);
cm->setLastUsed(currentTime);
}
void
......
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