Fixes Bug# 5913

Added code to Konsole::newSessionSelect() to take into account the position
of the toolBar when deciding where to display the m_file popup.
Sean Kendall Schneyer <sean@linuxbox.org>

svn path=/trunk/kdebase/konsole/; revision=55324
wilder-portage
Sean Kendall Schneyer 26 years ago
parent d19530f2a1
commit 106d62c2d3
  1. 9
      src/konsole.C

@ -843,7 +843,14 @@ void Konsole::activateSession()
void Konsole::newSessionSelect()
{
m_file->popup(te->mapToGlobal(QPoint(0,te->height()-m_file->sizeHint().height())));
// Take into account the position of the toolBar to determine where we put the popup
if((toolBar()->barPos() == KToolBar::Top) || (toolBar()->barPos() == KToolBar::Left)) {
m_file->popup(te->mapToGlobal(QPoint(0,0)));
} else if(toolBar()->barPos() == KToolBar::Right) {
m_file->popup(te->mapToGlobal(QPoint(te->width()-m_file->sizeHint().width(), 0)));
} else {
m_file->popup(te->mapToGlobal(QPoint(0,te->height()-m_file->sizeHint().height())));
}
}
void Konsole::newSession(int i)

Loading…
Cancel
Save