mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
Use custom signals to record previous name
Signed-off-by: Yihe Li <winmikedows@hotmail.com>
This commit is contained in:
@ -397,6 +397,7 @@ void ListViewDelegate::setModelData(QWidget* editor, QAbstractItemModel* model,
|
||||
// Prevent instance names longer than 128 chars
|
||||
text.truncate(128);
|
||||
if (text.size() != 0) {
|
||||
emit textChanged(model->data(index).toString(), text);
|
||||
model->setData(index, text);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user