mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Hierarchy dialog. Removed duplicate definition
This commit is contained in:
@@ -21,10 +21,11 @@
|
||||
#include "RiaFilePathTools.h"
|
||||
#include <QDir>
|
||||
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Internal variables
|
||||
///
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
static QString SEPARATOR = "/";
|
||||
const QChar RiaFilePathTools::SEPARATOR = '/';
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
///
|
||||
|
||||
@@ -32,6 +32,8 @@
|
||||
class RiaFilePathTools
|
||||
{
|
||||
public:
|
||||
static const QChar SEPARATOR;
|
||||
|
||||
static QString toInternalSeparator(const QString& path);
|
||||
static QString& appendSeparatorIfNo(QString& path);
|
||||
static QString relativePath(const QString& rootDir, const QString& dir);
|
||||
|
||||
@@ -61,7 +61,7 @@
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Internal variables
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
static QString SEPARATOR = "/";
|
||||
static const QChar SEPARATOR = RiaFilePathTools::SEPARATOR;
|
||||
|
||||
//--------------------------------------------------------------------------------------------------
|
||||
/// Internal functions
|
||||
@@ -613,7 +613,7 @@ void RicFileHierarchyDialog::updateEffectiveFilter()
|
||||
do
|
||||
{
|
||||
len = internalFilter.size();
|
||||
internalFilter.replace(SEPARATOR + SEPARATOR, SEPARATOR);
|
||||
internalFilter.replace(QString("%1%1").arg(SEPARATOR), SEPARATOR);
|
||||
} while (internalFilter.size() != len);
|
||||
|
||||
// Present native separators to the user
|
||||
|
||||
Reference in New Issue
Block a user