Revert "GUI: resolved issue #176 (empty label/comment shows error)"
This reverts commit 10d098eaa0
.
This commit is contained in:
parent
69610aad47
commit
0a8c824e78
|
@ -673,7 +673,7 @@ void CPUDisassembly::setLabel()
|
|||
if(DbgGetLabelAt((duint)wVA, SEG_DEFAULT, label_text))
|
||||
mLineEdit.setText(QString(label_text));
|
||||
mLineEdit.setWindowTitle("Add label at " + addr_text);
|
||||
if(mLineEdit.exec() != QDialog::Accepted || !mLineEdit.editText.length())
|
||||
if(mLineEdit.exec() != QDialog::Accepted)
|
||||
return;
|
||||
if(!DbgSetLabelAt(wVA, mLineEdit.editText.toUtf8().constData()))
|
||||
{
|
||||
|
@ -697,7 +697,7 @@ void CPUDisassembly::setComment()
|
|||
if(DbgGetCommentAt((duint)wVA, comment_text))
|
||||
mLineEdit.setText(QString(comment_text));
|
||||
mLineEdit.setWindowTitle("Add comment at " + addr_text);
|
||||
if(mLineEdit.exec() != QDialog::Accepted || !mLineEdit.editText.length())
|
||||
if(mLineEdit.exec() != QDialog::Accepted)
|
||||
return;
|
||||
if(!DbgSetCommentAt(wVA, mLineEdit.editText.toUtf8().constData()))
|
||||
{
|
||||
|
|
|
@ -521,7 +521,7 @@ void CPUDump::setLabelSlot()
|
|||
if(DbgGetLabelAt((duint)wVA, SEG_DEFAULT, label_text))
|
||||
mLineEdit.setText(QString(label_text));
|
||||
mLineEdit.setWindowTitle("Add label at " + addr_text);
|
||||
if(mLineEdit.exec() != QDialog::Accepted || !mLineEdit.editText.length())
|
||||
if(mLineEdit.exec() != QDialog::Accepted)
|
||||
return;
|
||||
if(!DbgSetLabelAt(wVA, mLineEdit.editText.toUtf8().constData()))
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue