From 27e2b5e4ea557b24762aa045271081231c698d32 Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Mon, 7 Jan 2013 22:07:52 +0100 Subject: [PATCH] BbTrack: fixed openInBBEditor() to reliably show the BB Editor Use the function provided by MainWindow to reliably show the BB Editor. Thanks to Tres Finocchiaro for pointing out this issue. --- src/tracks/bb_track.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/tracks/bb_track.cpp b/src/tracks/bb_track.cpp index db258a7f8..f4ba75dbc 100644 --- a/src/tracks/bb_track.cpp +++ b/src/tracks/bb_track.cpp @@ -1,7 +1,7 @@ /* * bb_track.cpp - implementation of class bbTrack and bbTCO * - * Copyright (c) 2004-2009 Tobias Doerffel + * Copyright (c) 2004-2013 Tobias Doerffel * * This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net * @@ -33,6 +33,7 @@ #include "embed.h" #include "engine.h" #include "gui_templates.h" +#include "MainWindow.h" #include "mixer.h" #include "rename_dialog.h" #include "song.h" @@ -223,10 +224,9 @@ void bbTCOView::paintEvent( QPaintEvent * ) void bbTCOView::openInBBEditor() { - engine::getBBTrackContainer()->setCurrentBB( bbTrack::numOfBBTrack( - m_bbTCO->getTrack() ) ); - engine::getBBEditor()->show(); - engine::getBBEditor()->setFocus(); + engine::getBBTrackContainer()->setCurrentBB( bbTrack::numOfBBTrack( m_bbTCO->getTrack() ) ); + + engine::mainWindow()->toggleBBEditorWin( true ); }