diff --git a/selfdrive/ui/qt/widgets/input.cc b/selfdrive/ui/qt/widgets/input.cc index cf63e428cb..ef776844f8 100644 --- a/selfdrive/ui/qt/widgets/input.cc +++ b/selfdrive/ui/qt/widgets/input.cc @@ -72,6 +72,10 @@ int InputDialog::exec() { return QDialog::exec(); } +void InputDialog::show(){ + setMainWindow(this); +} + void InputDialog::handleInput(QString s) { if (!QString::compare(s,"⌫")) { line->backspace(); diff --git a/selfdrive/ui/qt/widgets/input.hpp b/selfdrive/ui/qt/widgets/input.hpp index c3d971f753..c831d6032a 100644 --- a/selfdrive/ui/qt/widgets/input.hpp +++ b/selfdrive/ui/qt/widgets/input.hpp @@ -18,6 +18,7 @@ public: QString text(); void setMessage(QString message, bool clearInputField=true); void setMinLength(int length); + void show(); private: int minLength;