diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 3288711..d1e9ed0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -122,22 +122,22 @@ SET(keepassx_FORMS SET(keepassx_RESOURCES res/resources.qrc) set(keepassx_TRANSLATIONS -# translations/keepassx-cs_CZ.ts - translations/keepassx-de_DE.ts - translations/keepassx-es_ES.ts - translations/keepassx-fi_FI.ts - translations/keepassx-fr_FR.ts - translations/keepassx-gl_ES.ts - translations/keepassx-hu_HU.ts - translations/keepassx-it_IT.ts - translations/keepassx-ja_JP.ts - translations/keepassx-nb_NO.ts - translations/keepassx-nl_NL.ts - translations/keepassx-pl_PL.ts - translations/keepassx-ru_RU.ts - translations/keepassx-tr_TR.ts - translations/keepassx-uk_UA.ts - translations/keepassx-zh_CN.ts +# translations/keepassx1-cs_CZ.ts + translations/keepassx1-de_DE.ts + translations/keepassx1-es_ES.ts + translations/keepassx1-fi_FI.ts + translations/keepassx1-fr_FR.ts + translations/keepassx1-gl_ES.ts + translations/keepassx1-hu_HU.ts + translations/keepassx1-it_IT.ts + translations/keepassx1-ja_JP.ts + translations/keepassx1-nb_NO.ts + translations/keepassx1-nl_NL.ts + translations/keepassx1-pl_PL.ts + translations/keepassx1-ru_RU.ts + translations/keepassx1-tr_TR.ts + translations/keepassx1-uk_UA.ts + translations/keepassx1-zh_CN.ts translations/qt_fi.ts translations/qt_hu.ts translations/qt_it.ts diff --git a/src/keepassx1.h b/src/keepassx1.h index d5674bc..6f55f29 100644 --- a/src/keepassx1.h +++ b/src/keepassx1.h @@ -22,8 +22,8 @@ // global defines -#define APP_DISPLAY_NAME "KeePassX" -#define APP_CODE_NAME "keepassx" +#define APP_DISPLAY_NAME "KeePassX1" +#define APP_CODE_NAME "keepassx1" #define APP_SHORT_FUNC "Password Manager" #define APP_LONG_FUNC "Cross Platform Password Manager" #define APP_VERSION "0.4.4" diff --git a/src/main.cpp b/src/main.cpp index 4bb6354..efd38df 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -73,7 +73,7 @@ int main(int argc, char **argv) AppDir = QApplication::applicationFilePath(); AppDir.truncate(AppDir.lastIndexOf("/")); #if defined(Q_OS_LINUX) - DataDir = AppDir+"/../share/keepassx"; + DataDir = AppDir+"/../share/keepassx1"; if (!QFile::exists(DataDir) && QFile::exists(AppDir+"/share")) DataDir = AppDir+"/share"; const char* env = getenv("XDG_CONFIG_HOME"); @@ -89,14 +89,14 @@ int main(int argc, char **argv) } HomeDir += "/keepassx"; #elif defined(Q_OS_MAC) - HomeDir = QDir::homePath()+"/.keepassx"; - DataDir = AppDir+"/../Resources/keepassx"; + HomeDir = QDir::homePath()+"/.keepassx1"; + DataDir = AppDir+"/../Resources/keepassx1"; #elif defined(Q_OS_WIN32) HomeDir = qtWindowsConfigPath(0); if(!HomeDir.isEmpty() && QFile::exists(HomeDir)) - HomeDir = QDir::fromNativeSeparators(HomeDir)+"/KeePassX"; + HomeDir = QDir::fromNativeSeparators(HomeDir)+"/KeePassX1"; else - HomeDir = QDir::homePath()+"/KeePassX"; + HomeDir = QDir::homePath()+"/KeePassX1"; DataDir = AppDir+"/share"; #endif @@ -128,7 +128,7 @@ int main(int argc, char **argv) #ifdef Q_OS_LINUX { - QString OldHomeDir = QDir::homePath()+"/.keepassx"; + QString OldHomeDir = QDir::homePath()+"/.keepassx1"; if (args.configLocation().isEmpty() && QFile::exists(OldHomeDir+"/config") && !QFile::exists(HomeDir+"/config")) { QFile::rename(OldHomeDir+"/config", HomeDir+"/config.ini"); if (QDir(OldHomeDir).entryList(QDir::AllEntries|QDir::NoDotAndDotDot|QDir::Hidden|QDir::System).count()==0) diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6bbf9c4..3487b64 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -761,7 +761,8 @@ void KeepassMainWindow::updateDetailView(){ templ.replace("%lastmod%", QString(entry->lastMod().toString(Qt::SystemLocaleDate)).toHtmlEscaped()); templ.replace("%lastaccess%", QString(entry->lastAccess().toString(Qt::SystemLocaleDate)).toHtmlEscaped()); templ.replace("%expire%", QString(entry->expire().toString(Qt::SystemLocaleDate)).toHtmlEscaped()); - templ.replace("%comment%", QString(entry->comment().replace("\n","
")).toHtmlEscaped()); + QStringList commentlines = entry->comment().toHtmlEscaped().split("\n"); + templ.replace("%comment%", commentlines.join("
")); templ.replace("%attachment%", QString(entry->binaryDesc()).toHtmlEscaped()); if(entry->expire()!=Date_Never){