Commit bff3653a authored by Michael Pyne's avatar Michael Pyne

JuK->m_warnings--;

Remove quite a few JuK warnings during program startup by assigning a widget
to the global action collection, and by delaying some player manager
initialization until after the GUI has been created.

Works well over here, shortcuts still work and the player still plays, but I'd
appreciate testing, especially by those who have gstreamer and arts installed.

CCMAIL:wheeler@kde.org

svn path=/trunk/kdemultimedia/juk/; revision=327406
parent f826cc34
......@@ -97,6 +97,8 @@ void JuK::setupLayout()
void JuK::setupActions()
{
ActionCollection::actions()->setWidget(this);
KStdAction::quit(this, SLOT(slotQuit()), actions());
KStdAction::cut(kapp, SLOT(cut()), actions());
KStdAction::copy(kapp, SLOT(copy()), actions());
......
......@@ -76,7 +76,11 @@ PlayerManager::PlayerManager() :
m_noSeek(false),
m_muted(false)
{
setup();
// This class is the first thing constructed during program startup, and
// therefore has no access to the widgets needed by the setup() method.
// Since the setup() method will be called indirectly by the player() method
// later, just disable it here. -- mpyne
// setup();
}
PlayerManager::~PlayerManager()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment