print cache location
This commit is contained in:
parent
db954b29d9
commit
61cdfc8b1c
|
@ -92,16 +92,16 @@ SnoreLog::SnoreLog(SnoreDebugLevels lvl):
|
|||
|
||||
SnoreLog::~SnoreLog()
|
||||
{
|
||||
if(Loger::debugLvl() >= m_lvl)
|
||||
{
|
||||
Loger::outStream() << m_msg << "\n";
|
||||
Loger::outStream().flush();
|
||||
}
|
||||
if(Loger::isLogToFileEnabled())
|
||||
{
|
||||
Loger::logFile() << m_msg << "\n";
|
||||
Loger::logFile().flush();
|
||||
}
|
||||
if(Loger::debugLvl() >= m_lvl)
|
||||
{
|
||||
Loger::outStream() << m_msg << "\n";
|
||||
Loger::outStream().flush();
|
||||
}
|
||||
}
|
||||
|
||||
void SnoreLog::setDebugLvl(int i)
|
||||
|
|
|
@ -227,9 +227,9 @@ const QDir &PluginContainer::pluginDir()
|
|||
QString appDir = qApp->applicationDirPath();
|
||||
QStringList list;
|
||||
#ifdef Q_OS_MAC
|
||||
list << appDir;
|
||||
if ( appDir == "MacOS" )
|
||||
{
|
||||
list << appDir;
|
||||
QDir dir(appDir);
|
||||
// Development convenience-hack
|
||||
dir.cdUp();
|
||||
|
|
|
@ -102,6 +102,7 @@ private:
|
|||
if(_cache == NULL)
|
||||
{
|
||||
_cache = new QSettings("SnoreNotify","libsnore");
|
||||
snoreDebug( SNORE_DEBUG ) << _cache->fileName();
|
||||
_cache->beginGroup( SnoreCorePrivate::computeHash(pluginDir().absolutePath().toLatin1()));
|
||||
}
|
||||
return *_cache;
|
||||
|
|
Loading…
Reference in New Issue