rendered paste bodyIndex: previewgenerator.cpp
===================================================================
--- previewgenerator.cpp (revision 26907)
+++ previewgenerator.cpp (working copy)
@@ -114,7 +114,7 @@
bool ok = false;
bool is_local = IsLocal();
- if (!is_local && !!(mode & kRemote))
+ if (!is_local && (mode & kRemote))
{
VERBOSE(VB_IMPORTANT, LOC_ERR +
QString("Run() file not local: '%1'")
@@ -127,7 +127,7 @@
"because mode was invalid 0x%2")
.arg(pathname).arg((int)mode,0,16));
}
- else if (is_local && !!(mode & kLocal) && LocalPreviewRun())
+ else if (is_local && (mode & kLocal) && LocalPreviewRun())
{
ok = true;
msg = QString("Generated on %1 in %2 seconds, starting at %3")
@@ -135,7 +135,7 @@
.arg(tm.elapsed()*0.001)
.arg(tm.toString(Qt::ISODate));
}
- else if (!!(mode & kRemote))
+ else if (mode & kRemote)
{
if (is_local && (mode & kLocal))
{
@@ -196,11 +196,11 @@
bool ok = false;
QString command = GetInstallPrefix() + "/bin/mythpreviewgen";
bool local_ok = ((IsLocal() || !!(mode & kForceLocal)) &&
- (!!(mode & kLocal)) &&
+ (mode & kLocal) &&
QFileInfo(command).isExecutable());
if (!local_ok)
{
- if (!!(mode & kRemote))
+ if (mode & kRemote)
{
ok = RemotePreviewRun();
if (ok)