Browse Source

Removed 'No suggestions found...'. Going to add a status label later, which shows if the current tab is parsing or doing autocomplete in the background.

merge-requests/365/head
eidheim 11 years ago
parent
commit
97611a1e8c
  1. 6
      src/source.cc

6
src/source.cc

@ -838,14 +838,12 @@ void Source::ClangViewAutocomplete::autocomplete() {
completion_dialog->add_row(ss.str() + " --> " + return_value, data.brief_comments); completion_dialog->add_row(ss.str() + " --> " + return_value, data.brief_comments);
} }
} }
if (rows->empty()) { if (!rows->empty()) {
(*rows)["No suggestions found..."] = "";
completion_dialog->add_row("No suggestions found...");
}
completion_dialog_shown=true; completion_dialog_shown=true;
get_source_buffer()->begin_user_action(); get_source_buffer()->begin_user_action();
completion_dialog->show(); completion_dialog->show();
} }
}
else else
start_autocomplete(); start_autocomplete();
}); });

Loading…
Cancel
Save