mirror of https://github.com/stella-emu/stella.git
made DelayQueueWidget use setDirty
removed superfluous code from TiaWidget
This commit is contained in:
parent
9d63ec42d2
commit
2d9c9a5003
|
@ -50,7 +50,11 @@ void DelayQueueWidget::loadConfig() {
|
|||
using Common::Base;
|
||||
for (auto&& line : myLines) {
|
||||
if (!delayQueueIterator->isValid()) {
|
||||
line = "";
|
||||
if(line != "")
|
||||
{
|
||||
setDirty();
|
||||
line = "";
|
||||
}
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -81,7 +85,11 @@ void DelayQueueWidget::loadConfig() {
|
|||
break;
|
||||
}
|
||||
|
||||
line = ss.str();
|
||||
if(line != ss.str())
|
||||
{
|
||||
setDirty();
|
||||
line = ss.str();
|
||||
}
|
||||
delayQueueIterator->next();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -919,14 +919,10 @@ void TiaWidget::handleCommand(CommandSender* sender, int cmd, int data, int id)
|
|||
|
||||
case kRefP0ID:
|
||||
tia.refP0(myRefP0->getState() ? 1 : 0);
|
||||
myGRP0->setIntState(myGRP0->getIntState(), !myRefP0->getState());
|
||||
myGRP0Old->setIntState(myGRP0Old->getIntState(), !myRefP0->getState());
|
||||
break;
|
||||
|
||||
case kRefP1ID:
|
||||
tia.refP1(myRefP1->getState() ? 1 : 0);
|
||||
myGRP1->setIntState(myGRP1->getIntState(), !myRefP1->getState());
|
||||
myGRP1Old->setIntState(myGRP1Old->getIntState(), !myRefP1->getState());
|
||||
break;
|
||||
|
||||
case kDelP0ID:
|
||||
|
|
Loading…
Reference in New Issue