[libcalamaresui] Remove useless #define
This commit is contained in:
parent
ff10e1301d
commit
bbb9ff0cbf
@ -32,15 +32,10 @@
|
|||||||
#include <QDir>
|
#include <QDir>
|
||||||
#include <QTimer>
|
#include <QTimer>
|
||||||
|
|
||||||
#define MODULE_CONFIG_FILENAME "module.desc"
|
|
||||||
|
|
||||||
namespace Calamares
|
namespace Calamares
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
||||||
ModuleManager* ModuleManager::s_instance = nullptr;
|
ModuleManager* ModuleManager::s_instance = nullptr;
|
||||||
|
|
||||||
|
|
||||||
ModuleManager*
|
ModuleManager*
|
||||||
ModuleManager::instance()
|
ModuleManager::instance()
|
||||||
{
|
{
|
||||||
@ -94,7 +89,7 @@ ModuleManager::doInit()
|
|||||||
bool success = currentDir.cd( subdir );
|
bool success = currentDir.cd( subdir );
|
||||||
if ( success )
|
if ( success )
|
||||||
{
|
{
|
||||||
QFileInfo descriptorFileInfo( currentDir.absoluteFilePath( MODULE_CONFIG_FILENAME ) );
|
QFileInfo descriptorFileInfo( currentDir.absoluteFilePath( QLatin1Literal( "module.desc") ) );
|
||||||
if ( ! ( descriptorFileInfo.exists() && descriptorFileInfo.isReadable() ) )
|
if ( ! ( descriptorFileInfo.exists() && descriptorFileInfo.isReadable() ) )
|
||||||
{
|
{
|
||||||
cDebug() << Q_FUNC_INFO << "unreadable file: "
|
cDebug() << Q_FUNC_INFO << "unreadable file: "
|
||||||
|
Loading…
Reference in New Issue
Block a user