Skip to content

Commit 2232c3d

Browse files
committedApr 26, 2013
Merge branch 'master' into delimited_text_bug_fixes_2
2 parents f7dc548 + f384277 commit 2232c3d

File tree

7 files changed

+16
-5
lines changed

7 files changed

+16
-5
lines changed
 

‎python/plugins/sextante/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ SET (SEXTANTE_PLUGIN_DIR ${QGIS_DATA_DIR}/python/plugins/sextante)
22

33
ADD_SUBDIRECTORY(admintools)
44
ADD_SUBDIRECTORY(algs)
5+
ADD_SUBDIRECTORY(commander)
56
ADD_SUBDIRECTORY(core)
67
ADD_SUBDIRECTORY(gdal)
78
ADD_SUBDIRECTORY(grass)

‎python/plugins/sextante/SextantePlugin.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,6 @@
1616
* *
1717
***************************************************************************
1818
"""
19-
from PyQt4 import QtGui
20-
from sextante.commander.parser import parse
21-
from sextante.commander.CommanderWindow import CommanderWindow
2219

2320
__author__ = 'Victor Olaya'
2421
__date__ = 'August 2012'
@@ -32,6 +29,8 @@
3229
from PyQt4.QtCore import *
3330
from PyQt4.QtGui import *
3431
from qgis.core import *
32+
from PyQt4 import QtGui
33+
from sextante.commander.CommanderWindow import CommanderWindow
3534
from sextante.core.Sextante import Sextante
3635
from sextante.core.QGisLayers import QGisLayers
3736
from sextante.core.SextanteUtils import SextanteUtils
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FILE(GLOB PY_FILES *.py)
2+
3+
PLUGIN_INSTALL(sextante ./commander ${PY_FILES})

‎src/app/qgisappinterface.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -560,8 +560,6 @@ void QgisAppInterface::preloadForm( QString uifile )
560560

561561
void QgisAppInterface::cacheloadForm( QString uifile )
562562
{
563-
QUiLoader loader;
564-
565563
QFile file( uifile );
566564

567565
if ( file.open( QFile::ReadOnly ) )
@@ -572,6 +570,7 @@ void QgisAppInterface::cacheloadForm( QString uifile )
572570
loader.setWorkingDirectory( fi.dir() );
573571
QWidget *myWidget = loader.load( &file );
574572
file.close();
573+
delete myWidget;
575574
}
576575
}
577576

‎src/plugins/georeferencer/qgsmapcoordsdialog.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ void QgsMapCoordsDialog::maybeSetXY( const QgsPoint & xy, Qt::MouseButton button
126126

127127
mPointFromCanvasPushButton->setChecked( false );
128128
buttonBox->button( QDialogButtonBox::Ok )->setFocus();
129+
activateWindow();
130+
raise();
129131
}
130132

131133
void QgsMapCoordsDialog::setToolEmitPoint( bool isEnable )

‎src/providers/ogr/qgsogrprovider.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1851,6 +1851,9 @@ QGISEXTERN bool createEmptyDataSource( const QString &uri,
18511851
if ( driverName == "ESRI Shapefile" )
18521852
{
18531853
papszOptions = CSLSetNameValue( papszOptions, "ENCODING", encoding.toLocal8Bit().data() );
1854+
// OGR Shapefile fails to create fields if given encoding is not supported by its side
1855+
// so disable encoding conversion of OGR Shapefile layer
1856+
CPLSetConfigOption( "SHAPE_ENCODING", "" );
18541857
}
18551858

18561859
OGRLayerH layer;

‎tests/src/core/testziplayer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,14 @@ bool TestZipLayer::testZipItem( QString myFileName, QString myChildName, QString
154154
if ( myChildren.size() > 0 )
155155
{
156156
QgsDebugMsg( QString( "has %1 items" ).arg( myChildren.size() ) );
157+
QWARN( QString( "has %1 items" ).arg( myChildren.size() ).toLocal8Bit().data() );
157158
foreach ( QgsDataItem* item, myChildren )
158159
{
159160
QgsDebugMsg( QString( "child name=%1" ).arg( item->name() ) );
160161
QgsLayerItem *layerItem = dynamic_cast<QgsLayerItem*>( item );
161162
if ( layerItem )
162163
{
164+
QWARN( QString( "child %1" ).arg( layerItem->path() ).toLocal8Bit().data() );
163165
QgsDebugMsg( QString( "child name=%1 provider=%2 path=%3" ).arg( layerItem->name() ).arg( layerItem->providerKey() ).arg( layerItem->path() ) );
164166
if ( myChildName == "" || myChildName == item->name() )
165167
{
@@ -175,6 +177,8 @@ bool TestZipLayer::testZipItem( QString myFileName, QString myChildName, QString
175177
{
176178
QWARN( QString( "Invalid layer %1" ).arg( layerItem->path() ).toLocal8Bit().data() );
177179
}
180+
else
181+
QWARN( QString( "Valid layer %1" ).arg( layerItem->path() ).toLocal8Bit().data() );
178182
if ( myChildName == "" )
179183
{
180184
if ( ! ok )

0 commit comments

Comments
 (0)
Please sign in to comment.