From feb937893f1f136a7e6946402ff5a91ca57405ef Mon Sep 17 00:00:00 2001 From: meepingsnesroms Date: Sat, 26 May 2018 20:40:49 -0700 Subject: [PATCH] Fix all '3's being deleted when the debug string is 51 characters long --- qtBuildSystem/Mu/emuwrapper.cpp | 2 +- qtBuildSystem/Mu/mainwindow.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/qtBuildSystem/Mu/emuwrapper.cpp b/qtBuildSystem/Mu/emuwrapper.cpp index 29062e8..26f846c 100644 --- a/qtBuildSystem/Mu/emuwrapper.cpp +++ b/qtBuildSystem/Mu/emuwrapper.cpp @@ -33,7 +33,7 @@ void frontendHandleDebugPrint(){ //this debug handler doesnt need the \n if(newDebugString.back() == '\n') - newDebugString.remove(newDebugString.length() - 1); + newDebugString.remove(newDebugString.length() - 1, 1); if(!debugStrings.empty() && newDebugString == debugStrings.back()){ duplicateCallCount.back()++; diff --git a/qtBuildSystem/Mu/mainwindow.cpp b/qtBuildSystem/Mu/mainwindow.cpp index 416fa17..d091a6a 100644 --- a/qtBuildSystem/Mu/mainwindow.cpp +++ b/qtBuildSystem/Mu/mainwindow.cpp @@ -204,7 +204,7 @@ void MainWindow::on_ctrlBtn_clicked(){ } void MainWindow::on_debugger_clicked(){ - if(emu.isRunning()){ + if(emu.isInited()){ emu.pause(); ui->ctrlBtn->setIcon(QIcon(":/buttons/images/play.png")); emuDebugger->exec();