Skip to content

Commit a702048

Browse files
author
timlinux
committed
Fix for ticket #1150, grass toolbox crashing in OS X
git-svn-id: http://svn.osgeo.org/qgis/trunk@8756 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3124384 commit a702048

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

src/plugins/grass/qgsgrasstools.cpp

+12-8
Original file line numberDiff line numberDiff line change
@@ -155,10 +155,7 @@ QgsGrassTools::QgsGrassTools ( QgisInterface *iface,
155155
connect( mModulesListView, SIGNAL(itemClicked(QTreeWidgetItem *, int)),
156156
this, SLOT(moduleClicked( QTreeWidgetItem *, int)) );
157157

158-
QString title = tr("GRASS Tools: ") + QgsGrass::getDefaultLocation()
159-
+ "/" + QgsGrass::getDefaultMapset();
160-
setCaption(title);
161-
mModulesListView->show();
158+
162159

163160

164161
//
@@ -173,7 +170,7 @@ QgsGrassTools::QgsGrassTools ( QgisInterface *iface,
173170
mListView->setFocus();
174171
mListView->setItemDelegateForColumn(0,new QgsDetailedItemDelegate());
175172
mListView->setUniformItemSizes(false);
176-
mListView->show();
173+
177174
QWidget * mypBase = new QWidget(this);
178175
QVBoxLayout * mypListTabLayout = new QVBoxLayout(mypBase);
179176
mypListTabLayout->addWidget(mListView);
@@ -199,13 +196,20 @@ QgsGrassTools::QgsGrassTools ( QgisInterface *iface,
199196
loadConfig ( conf );
200197
QApplication::restoreOverrideCursor();
201198
//statusBar()->hide();
202-
203-
// Add map browser
199+
200+
// set the dialog title
201+
QString title = tr("GRASS Tools: ") + QgsGrass::getDefaultLocation()
202+
+ "/" + QgsGrass::getDefaultMapset();
203+
setCaption(title);
204+
mModulesListView->show();
205+
mListView->show();
206+
207+
// Add map browser
204208
mBrowser = new QgsGrassBrowser ( mIface, this );
205209
mTabWidget->addTab( mBrowser, tr("Browser") );
206210

207211
connect( mBrowser, SIGNAL(regionChanged()),
208-
this, SLOT(emitRegionChanged()) );
212+
this, SLOT(emitRegionChanged()) );
209213
}
210214

211215
void QgsGrassTools::moduleClicked( QTreeWidgetItem * item, int column )

0 commit comments

Comments
 (0)