Previous 199869 Revisions Next

r23304 Thursday 30th May, 2013 at 16:24:07 UTC by Andrew Gardner
Oops.  Slot names aren't unique.  This is better anyway. (nw)
[src/osd/sdl]debugqtmainwindow.c

trunk/src/osd/sdl/debugqtmainwindow.c
r23303r23304
339339   unmountAct->setEnabled(true);
340340   
341341   // Set the mount name
342   QMenu* parentMenuItem = menuBar()->findChild<QMenu*>(img->device().name());
342   QMenu* parentMenuItem = dynamic_cast<QMenu*>(sender()->parent());
343343   QString baseString = parentMenuItem->title();
344344   baseString.truncate(baseString.lastIndexOf(QString(" : ")));
345345   const QString newTitle = baseString + QString(" : ") + QString(img->filename());
r23303r23304
363363   dynamic_cast<QAction*>(sender())->setEnabled(false);
364364   
365365   // Set the mount name
366   QMenu* parentMenuItem = menuBar()->findChild<QMenu*>(img->device().name());
366   QMenu* parentMenuItem = dynamic_cast<QMenu*>(sender()->parent());
367367   QString baseString = parentMenuItem->title();
368368   baseString.truncate(baseString.lastIndexOf(QString(" : ")));
369369   const QString newTitle = baseString + QString(" : ") + QString("[empty slot]");

Previous 199869 Revisions Next


© 1997-2024 The MAME Team