Skip to content

Commit f4915a5

Browse files
author
telwertowski
committedDec 3, 2007
Make GRASS shell usable on Mac:
- Don't close pty descriptor in child process; it make the shell ignore input. - Don't set Q3TextEdit readOnly since this processes keys as keyboard shortcuts. Fix for bug #739. git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@7707 c8812cc2-4d05-0410-92ff-de0c093fc19c

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

‎src/plugins/grass/qgsgrassshell.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ QDialog(parent), QgsGrassShellBase(), mTools(tools)
107107

108108
mAppDir = mTools->appDir();
109109

110+
#ifndef Q_WS_MAC
111+
// Qt4.3.2/Mac Q3TextEdit readOnly property causes keys to be processed as keyboard actions
110112
mText->setReadOnly(TRUE);
113+
#endif
111114
//mText->setFocusPolicy ( QWidget::NoFocus ); // To get key press directly
112115

113116
#ifndef HAVE_OPENPTY
@@ -180,7 +183,10 @@ QDialog(parent), QgsGrassShellBase(), mTools(tools)
180183
#endif
181184

182185
// TODO close all opened file descriptors - close(0)???
186+
#ifndef Q_OS_DARWIN
187+
// Makes child process unusable on Mac
183188
close ( mFdMaster );
189+
#endif
184190

185191
//close ( fdSlave ); // -> freeze
186192

0 commit comments

Comments
 (0)
Please sign in to comment.