trunk/src/osd/sdl/debugqtmainwindow.c
r23303 | r23304 | |
339 | 339 | unmountAct->setEnabled(true); |
340 | 340 | |
341 | 341 | // Set the mount name |
342 | | QMenu* parentMenuItem = menuBar()->findChild<QMenu*>(img->device().name()); |
| 342 | QMenu* parentMenuItem = dynamic_cast<QMenu*>(sender()->parent()); |
343 | 343 | QString baseString = parentMenuItem->title(); |
344 | 344 | baseString.truncate(baseString.lastIndexOf(QString(" : "))); |
345 | 345 | const QString newTitle = baseString + QString(" : ") + QString(img->filename()); |
r23303 | r23304 | |
363 | 363 | dynamic_cast<QAction*>(sender())->setEnabled(false); |
364 | 364 | |
365 | 365 | // Set the mount name |
366 | | QMenu* parentMenuItem = menuBar()->findChild<QMenu*>(img->device().name()); |
| 366 | QMenu* parentMenuItem = dynamic_cast<QMenu*>(sender()->parent()); |
367 | 367 | QString baseString = parentMenuItem->title(); |
368 | 368 | baseString.truncate(baseString.lastIndexOf(QString(" : "))); |
369 | 369 | const QString newTitle = baseString + QString(" : ") + QString("[empty slot]"); |