Permalink
Browse files

Fixed a crash

  • Loading branch information...
1 parent ffea628 commit 653e686914f37408de2be5dd3ab33db26db6ebd0 @bmcdorman bmcdorman committed Oct 27, 2013
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/console_widget.cpp
View
1 src/console_widget.cpp
@@ -36,6 +36,7 @@ QProcess *ConsoleWidget::process() const
void ConsoleWidget::keyPressEvent(QKeyEvent *event)
{
+ if(!m_process) return;
QTextEdit::keyPressEvent(event);
if(event->modifiers() != Qt::NoModifier && event->modifiers() != Qt::ShiftModifier) return;
QString text = event->text();

0 comments on commit 653e686

Please sign in to comment.