added links to README.md, using std::freopen

master
Tibor 2 years ago
parent 8222cca494
commit 2d71dcd7bc
  1. 14
      NNotes.pro
  2. 12
      README.md
  3. 5
      main.cpp

@ -7,9 +7,9 @@ CONFIG += c++11
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
SOURCES += \
config.cpp \
main.cpp \
notehandler.cpp
config.cpp \
main.cpp \
notehandler.cpp
RESOURCES += qml.qrc
@ -33,8 +33,8 @@ HEADERS += \
log.h \
notehandler.h
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/3rdparty/config4cpp/lib/release/ -lconfig4cpp
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/3rdparty/config4cpp/lib/debug/ -lconfig4cpp
win32:CONFIG(release, debug|release): LIBS += -L$$PWD/3rdparty/config4cpp/lib/ -lconfig4cpp
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/3rdparty/config4cpp/lib/ -lconfig4cpp
else:unix:!macx: LIBS += -L$$PWD/3rdparty/config4cpp/lib/ -lconfig4cpp
INCLUDEPATH += $$PWD/3rdparty/config4cpp/include
@ -42,6 +42,6 @@ DEPENDPATH += $$PWD/3rdparty/config4cpp/include
win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/3rdparty/config4cpp/lib/release/libconfig4cpp.a
else:win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/3rdparty/config4cpp/lib/debug/libconfig4cpp.a
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/3rdparty/config4cpp/lib/release/config4cpp.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/3rdparty/config4cpp/lib/debug/config4cpp.lib
else:win32:!win32-g++:CONFIG(release, debug|release): PRE_TARGETDEPS += $$PWD/3rdparty/config4cpp/lib/config4cpp.lib
else:win32:!win32-g++:CONFIG(debug, debug|release): PRE_TARGETDEPS += $$PWD/3rdparty/config4cpp/lib/config4cpp.lib
else:unix:!macx: PRE_TARGETDEPS += $$PWD/3rdparty/config4cpp/lib/libconfig4cpp.a

@ -1,7 +1,17 @@
# NNotes
Desktop client for Nextcloud to edit your notes.
Unofficial desktop client for Nextcloud to edit your notes. At the moment basically nothing but a simple text editor with some flavor.
Work in progress. Feel free to create pull requests or contact me: dev [at] taibsu . de
#### Copyright, References + Legal stuff
[Nextcloud](https://github.com/nextcloud)
[Nextcloud Notes App](https://apps.nextcloud.com/apps/notes)
Icons made by [Freepik](https://www.freepik.com) from [www.flaticon.com](https://www.flaticon.com/)

@ -6,6 +6,9 @@
#include <QMessageBox>
#define _CRT_SECURE_NO_WARNINGS
#include <cstdio>
#include "config.h"
#include "notehandler.h"
@ -17,7 +20,7 @@ int main(int argc, char *argv[])
std::string const& logfile { "nnotes.log" };
if (!freopen(logfile.c_str(), "w", stderr)) {
if (!std::freopen(logfile.c_str(), "w", stderr)) {
// we can still write to stderr.
LOG_ERR("Unable to create log file! Continuing without log.");
}

Loading…
Cancel
Save