mirror of
https://github.com/subsurface/subsurface.git
synced 2024-12-11 03:21:29 +00:00
Cleanup: simplify DiveLocationLineEdit::showPopup()
DiveLocationLineEdit::showPopup() called the functions - fixPopupPosition() - proxy->invalidate() - proxy->sort(LocationInformationModel::NAME) - view->show() All these calls are redundant, as they are already performed by setTemporaryDiveSiteName(). Remove them. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
parent
e76298a8a7
commit
4a61f155d3
1 changed files with 1 additions and 6 deletions
|
@ -575,13 +575,8 @@ void DiveLocationLineEdit::setCurrentDiveSite(struct dive *d)
|
||||||
|
|
||||||
void DiveLocationLineEdit::showPopup()
|
void DiveLocationLineEdit::showPopup()
|
||||||
{
|
{
|
||||||
fixPopupPosition();
|
if (!view->isVisible())
|
||||||
if (!view->isVisible()) {
|
|
||||||
setTemporaryDiveSiteName(text());
|
setTemporaryDiveSiteName(text());
|
||||||
proxy->invalidate();
|
|
||||||
proxy->sort(LocationInformationModel::NAME);
|
|
||||||
view->show();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
DiveLocationLineEdit::DiveSiteType DiveLocationLineEdit::currDiveSiteType() const
|
DiveLocationLineEdit::DiveSiteType DiveLocationLineEdit::currDiveSiteType() const
|
||||||
|
|
Loading…
Reference in a new issue