--verbose is now --debug, CalamaresApplication keeps track of it
This commit is contained in:
parent
1f98c3efae
commit
56c6df30e6
@ -113,3 +113,17 @@ CalamaresApplication::initJobQueue()
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
void
|
||||||
|
CalamaresApplication::setDebug( bool enabled )
|
||||||
|
{
|
||||||
|
m_debugMode = enabled;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
bool
|
||||||
|
CalamaresApplication::isDebug()
|
||||||
|
{
|
||||||
|
return m_debugMode;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -40,9 +40,13 @@ public:
|
|||||||
void initPlugins();
|
void initPlugins();
|
||||||
void initJobQueue();
|
void initJobQueue();
|
||||||
|
|
||||||
|
void setDebug( bool enabled );
|
||||||
|
bool isDebug();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
CalamaresWindow* m_mainwindow;
|
CalamaresWindow* m_mainwindow;
|
||||||
|
|
||||||
|
bool m_debugMode;
|
||||||
//QPointer< Calamares::JobQueue > m_jobQueue;
|
//QPointer< Calamares::JobQueue > m_jobQueue;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -34,14 +34,15 @@ main( int argc, char *argv[] )
|
|||||||
parser.setApplicationDescription( "Distribution-independent installer framework" );
|
parser.setApplicationDescription( "Distribution-independent installer framework" );
|
||||||
parser.addHelpOption();
|
parser.addHelpOption();
|
||||||
parser.addVersionOption();
|
parser.addVersionOption();
|
||||||
QCommandLineOption verboseOption( QStringList() << "v" << "verbose",
|
QCommandLineOption debugOption( QStringList() << "d" << "debug",
|
||||||
"Verbose output for debugging purposes." );
|
"Verbose output for debugging purposes." );
|
||||||
parser.addOption( verboseOption );
|
parser.addOption( debugOption );
|
||||||
|
|
||||||
parser.process( a );
|
parser.process( a );
|
||||||
|
|
||||||
|
a.setDebug( parser.isSet( debugOption ) );
|
||||||
|
|
||||||
KDSingleApplicationGuard guard( KDSingleApplicationGuard::AutoKillOtherInstances );
|
KDSingleApplicationGuard guard( KDSingleApplicationGuard::AutoKillOtherInstances );
|
||||||
QObject::connect( &guard, SIGNAL( instanceStarted( KDSingleApplicationGuard::Instance ) ), &a, SLOT( instanceStarted( KDSingleApplicationGuard::Instance ) ) );
|
|
||||||
|
|
||||||
int returnCode = 0;
|
int returnCode = 0;
|
||||||
if ( guard.isPrimaryInstance() )
|
if ( guard.isPrimaryInstance() )
|
||||||
|
Loading…
Reference in New Issue
Block a user