Skip to content
Permalink
Browse files
Fix for ticket #1150, grass toolbox crashing in OS X
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8756 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 11, 2008
1 parent 9197eae commit 5e3c9676e6717f86158e385a66c8456ebb2a51d9
Showing with 12 additions and 8 deletions.
  1. +12 −8 src/plugins/grass/qgsgrasstools.cpp
@@ -155,10 +155,7 @@ QgsGrassTools::QgsGrassTools ( QgisInterface *iface,
connect( mModulesListView, SIGNAL(itemClicked(QTreeWidgetItem *, int)),
this, SLOT(moduleClicked( QTreeWidgetItem *, int)) );

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



//
@@ -173,7 +170,7 @@ QgsGrassTools::QgsGrassTools ( QgisInterface *iface,
mListView->setFocus();
mListView->setItemDelegateForColumn(0,new QgsDetailedItemDelegate());
mListView->setUniformItemSizes(false);
mListView->show();

QWidget * mypBase = new QWidget(this);
QVBoxLayout * mypListTabLayout = new QVBoxLayout(mypBase);
mypListTabLayout->addWidget(mListView);
@@ -199,13 +196,20 @@ QgsGrassTools::QgsGrassTools ( QgisInterface *iface,
loadConfig ( conf );
QApplication::restoreOverrideCursor();
//statusBar()->hide();

// Add map browser

// set the dialog title
QString title = tr("GRASS Tools: ") + QgsGrass::getDefaultLocation()
+ "/" + QgsGrass::getDefaultMapset();
setCaption(title);
mModulesListView->show();
mListView->show();

// Add map browser
mBrowser = new QgsGrassBrowser ( mIface, this );
mTabWidget->addTab( mBrowser, tr("Browser") );

connect( mBrowser, SIGNAL(regionChanged()),
this, SLOT(emitRegionChanged()) );
this, SLOT(emitRegionChanged()) );
}

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

0 comments on commit 5e3c967

Please sign in to comment.