Fixed image should not open multiple times

see issue 1024
This commit is contained in:
Oliver Duis
2011-10-03 19:04:44 +02:00
parent f5d3f60789
commit 6f5eb6b371
5 changed files with 32 additions and 7 deletions

View File

@@ -292,6 +292,22 @@ void RTWindow::remEditorPanel (EditorPanel* ep) {
}
}
bool RTWindow::selectEditorPanel(const std::string &name) {
if (EditWindow::isMultiDisplayEnabled()) {
EditWindow * wndEdit = EditWindow::getInstance(this);
if (wndEdit->selectEditorPanel(name)) return true;
} else {
std::map<Glib::ustring, EditorPanel*>::iterator iep = epanels.find(name);
if (iep!=epanels.end()) {
mainNB->set_current_page (mainNB->page_num (*iep->second));
return true;
}
}
return false;
}
bool RTWindow::keyPressed (GdkEventKey* event) {
bool ctrl = event->state & GDK_CONTROL_MASK;