diff --git a/UI/window-remux.cpp b/UI/window-remux.cpp index c8f15ce9055673cf05d87c976ac789286b4bda68..f6fa08b94c4258d9e2bc72eb611071e3a23dda71 100644 --- a/UI/window-remux.cpp +++ b/UI/window-remux.cpp @@ -150,6 +150,7 @@ void RemuxEntryPathItemDelegate::setEditorData(QWidget *editor, { QLineEdit *text = editor->findChild(); text->setText(index.data().toString()); + QObject::connect(text, SIGNAL(textEdited(QString)), this, SLOT(updateText())); editor->setProperty(PATH_LIST_PROP, QVariant()); } @@ -257,6 +258,11 @@ void RemuxEntryPathItemDelegate::handleClear(QWidget *container) emit commitData(container); } +void RemuxEntryPathItemDelegate::updateText() { + QLineEdit *lineEdit = dynamic_cast(sender()); + QWidget *editor = lineEdit->parentWidget(); + emit commitData(editor); +} /********************************************************** Model - Manages the queue's data diff --git a/UI/window-remux.hpp b/UI/window-remux.hpp index ad78fb756f97c33ff03efb57370ae6da113c24ec..c98d45abe9fa14330d954c76980c4def94a4132b 100644 --- a/UI/window-remux.hpp +++ b/UI/window-remux.hpp @@ -189,4 +189,6 @@ private: void handleBrowse(QWidget *container); void handleClear(QWidget *container); +private slots: + void updateText(); };