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@8756 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
timlinux committed Jul 11, 2008
1 parent 3124384 commit a702048
Showing 1 changed file with 12 additions and 8 deletions.
@@ -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 a702048

Please sign in to comment.