dammit jim, it's a stack not a queue
This commit is contained in:
parent
e2f6957c85
commit
1666cab029
|
@ -63,7 +63,7 @@ using std::string;
|
|||
sigc::signal<void> EditingContext::DropDownKeys;
|
||||
Gtkmm2ext::Bindings* EditingContext::button_bindings = nullptr;
|
||||
Glib::RefPtr<Gtk::ActionGroup> EditingContext::_midi_actions;
|
||||
std::queue<EditingContext*> EditingContext::ec_stack;
|
||||
std::stack<EditingContext*> EditingContext::ec_stack;
|
||||
std::vector<std::string> EditingContext::grid_type_strings;
|
||||
MouseCursors* EditingContext::_cursors = nullptr;
|
||||
|
||||
|
@ -1979,7 +1979,7 @@ EditingContext*
|
|||
EditingContext::current_editing_context()
|
||||
{
|
||||
if (!ec_stack.empty()) {
|
||||
return ec_stack.front ();
|
||||
return ec_stack.top ();
|
||||
}
|
||||
|
||||
return nullptr;
|
||||
|
|
|
@ -33,7 +33,7 @@
|
|||
#ifndef __ardour_midi_editing_context_h__
|
||||
#define __ardour_midi_editing_context_h__
|
||||
|
||||
#include <queue>
|
||||
#include <stack>
|
||||
|
||||
#include "pbd/signals.h"
|
||||
|
||||
|
@ -625,7 +625,7 @@ public:
|
|||
ArdourCanvas::Rect autoscroll_boundary;
|
||||
|
||||
private:
|
||||
static std::queue<EditingContext*> ec_stack;
|
||||
static std::stack<EditingContext*> ec_stack;
|
||||
|
||||
};
|
||||
|
||||
|
|
|
@ -767,10 +767,6 @@ Editor::Editor ()
|
|||
|
||||
BasicUI::AccessAction.connect (*this, invalidator (*this), boost::bind (&Editor::access_action, this, _1, _2), gui_context());
|
||||
|
||||
/* handle escape */
|
||||
|
||||
ARDOUR_UI::instance()->Escape.connect (*this, invalidator (*this), boost::bind (&Editor::escape, this), gui_context());
|
||||
|
||||
/* problematic: has to return a value and thus cannot be x-thread */
|
||||
|
||||
Session::AskAboutPlaylistDeletion.connect_same_thread (*this, boost::bind (&Editor::playlist_deletion_dialog, this, _1));
|
||||
|
|
Loading…
Reference in New Issue
Block a user