Mercurial > hg > sonic-visualiser
diff main/MainWindow.cpp @ 377:909cf273bed1 macness
Mac Dock menu uses same import-itunes-action as the File menu
author | Dan Stowell <dan.stowell@eecs.qmul.ac.uk> |
---|---|
date | Mon, 18 Oct 2010 13:24:38 +0100 |
parents | ca9f27734349 |
children | fad5611ef9db |
line wrap: on
line diff
--- a/main/MainWindow.cpp Fri Oct 15 11:07:11 2010 +0100 +++ b/main/MainWindow.cpp Mon Oct 18 13:24:38 2010 +0100 @@ -446,13 +446,13 @@ menu->addAction(action); #ifdef Q_WS_MAC - action = new QAction(tr("Import current track from iTunes"), this); - action->setShortcut(tr("Ctrl+Alt+I")); - action->setStatusTip(tr("Import currently playing/selected iTunes track")); - connect(action, SIGNAL(triggered()), this, SLOT(importITunesAudio())); + m_importITunesAction = new QAction(tr("Import current track from iTunes"), this); + m_importITunesAction->setShortcut(tr("Ctrl+Alt+I")); + m_importITunesAction->setStatusTip(tr("Import currently playing/selected iTunes track")); + connect(m_importITunesAction, SIGNAL(triggered()), this, SLOT(importITunesAudio())); //connect(this, SIGNAL(canImportITunesAudio(bool)), action, SLOT(setEnabled(bool))); - m_keyReference->registerShortcut(action); - menu->addAction(action); + m_keyReference->registerShortcut(m_importITunesAction); + menu->addAction(m_importITunesAction); #endif action = new QAction(tr("&Export Audio File..."), this);