mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Use Max instead of Min of course
This commit is contained in:
parent
23c598a907
commit
48d5261ba7
@ -167,7 +167,7 @@ void OwncloudSetupPage::handleNewOcUrl(const QString& ocUrl)
|
||||
int pos = _ui.leUrl->cursorPosition();
|
||||
url.remove(0, len);
|
||||
_ui.leUrl->setText(url);
|
||||
_ui.leUrl->setCursorPosition(qMin(0, pos-len));
|
||||
_ui.leUrl->setCursorPosition(qMax(0, pos-len));
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user