summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgregory guy <[email protected]>2018-09-14 17:00:04 +0200
committerSlávek Banko <[email protected]>2018-09-15 13:46:25 +0200
commitfbfb5a1647b3acbba92a3e0dc0ff7aacb8410541 (patch)
treeb50c46035919db6961867efd84d554850d5288f6
parent0df19d243937f962e87a74b6d43763af123f5286 (diff)
downloadknowit-fbfb5a1647b3acbba92a3e0dc0ff7aacb8410541.tar.gz
knowit-fbfb5a1647b3acbba92a3e0dc0ff7aacb8410541.zip
htmlfile should get an assignment not a comparison
Signed-off-by: gregory guy <[email protected]> (cherry picked from commit 8bebc3f6f411b1a43164f1fc52c881017a9bc821)
-rw-r--r--src/knowit.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/knowit.cpp b/src/knowit.cpp
index b930bbb..a9a2853 100644
--- a/src/knowit.cpp
+++ b/src/knowit.cpp
@@ -964,9 +964,9 @@ void Knowit::slotFileExport()
htmlfile = htmlfile.left(htmlfile.length() - 4) + ".html";
else htmlfile = "";
}
- if (htmlfile.isEmpty())
- htmlfile == TQDir::currentDirPath();
-
+ if (htmlfile.isEmpty()) {
+ htmlfile = TQDir::currentDirPath();
+ }
/* Confirm/choose filename */
KURL url=KFileDialog::getSaveURL(htmlfile,
i18n("*.html|HTML files (*.html)\n*|All files"), this, i18n("Export to HTML"));