Skip to content
Permalink
Browse files

Test fixes

  • Loading branch information
wonder-sk committed Apr 7, 2018
1 parent 17a8c45 commit 663a9ac26aafa7c0c04da763851709080f9648fb
@@ -23,7 +23,6 @@ This is a singleton that should be accessed through :py:func:`QgsApplication.pro
#include "qgsprojectstorageregistry.h"
%End
public:
QgsProjectStorageRegistry();
~QgsProjectStorageRegistry();

QgsProjectStorage *projectStorageFromType( const QString &type );
@@ -483,6 +483,9 @@ QString QgsProject::absoluteFilePath() const
if ( storage )
return QString();

if ( mFile.fileName().isEmpty() )
return QString(); // this is to protect ourselves from getting current directory from QFileInfo::absoluteFilePath()

return QFileInfo( mFile.fileName() ).absoluteFilePath();
}

@@ -33,7 +33,6 @@ class QgsProjectStorage;
class CORE_EXPORT QgsProjectStorageRegistry
{
public:
QgsProjectStorageRegistry() = default;
~QgsProjectStorageRegistry();

//! Returns storage implementation if the storage type matches one. Returns null pointer otherwise (it is a normal file)
@@ -23,7 +23,6 @@ typedef struct
class QgsPostgresProjectStorage : public QgsProjectStorage
{
public:
QgsPostgresProjectStorage() = default;

virtual QString type() override { return QStringLiteral( "postgresql" ); }

0 comments on commit 663a9ac

Please sign in to comment.
You can’t perform that action at this time.