-// connect(m_standard.button_all, SIGNAL(toggled(bool)), this, SLOT(slotCheckStandard()));
+ QString exec = KStandardDirs::findExe("k3b");
+ if (!exec.isEmpty()) {
+ //Add K3b action
+ QAction *k3b = m_burnMenu->addAction(KIcon("k3b"), i18n("Burn with %1", "K3b"), this, SLOT(slotBurn()));
+ k3b->setData(exec);
+ }
+ exec = KStandardDirs::findExe("brasero");
+ if (!exec.isEmpty()) {
+ //Add Brasero action
+ QAction *brasero = m_burnMenu->addAction(KIcon("brasero"), i18n("Burn with %1", "Brasero"), this, SLOT(slotBurn()));
+ brasero->setData(exec);
+ }
+ if (m_burnMenu->isEmpty()) m_burnMenu->addAction(i18n("No burning program found (K3b, Brasero)"));
+ m_status.button_burn->setMenu(m_burnMenu);
+ m_status.button_burn->setIcon(KIcon("tools-media-optical-burn"));
+ m_status.button_burn->setToolButtonStyle(Qt::ToolButtonTextBesideIcon);
+ m_status.button_preview->setIcon(KIcon("media-playback-start"));
+