Code Monkey home page Code Monkey logo

wxnote's Issues

cannot build.need to add a line of include

03:25:08: Running steps for project wxNote...
03:25:08: Starting: "/usr/bin/qmake" /home/jerry/TongG-wxNote/wxNote.pro -r -spec linux-g++ CONFIG+=debug CONFIG+=declarative_debug CONFIG+=qml_debug
03:25:09: The process "/usr/bin/qmake" exited normally.
03:25:09: Starting: "/usr/bin/make"
g++ -c -pipe -g -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++ -I../TongG-wxNote -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -o main.o ../TongG-wxNote/main.cpp
g++ -c -pipe -g -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++ -I../TongG-wxNote -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -o AbstractMainWindow.o ../TongG-wxNote/wxNote_Gui/wxNote_Window/AbstractMainWindow.cpp
g++ -c -pipe -g -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++ -I../TongG-wxNote -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -o TextEditorWindow.o ../TongG-wxNote/wxNote_Gui/wxNote_Window/TextEditorWindow.cpp
g++ -c -pipe -g -std=c++0x -Wall -W -D_REENTRANT -fPIE -DQT_QML_DEBUG -DQT_DECLARATIVE_DEBUG -DQT_WIDGETS_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/share/qt5/mkspecs/linux-g++ -I../TongG-wxNote -I/usr/include/qt5 -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtGui -I/usr/include/qt5/QtCore -I. -I. -o MainWindowNormal.o ../TongG-wxNote/wxNote_Gui/wxNote_Window/MainWindowNormal.cpp
../TongG-wxNote/wxNote_Gui/wxNote_Window/MainWindowNormal.cpp: In member function 'void _MainWindowNormal::_RestoreSpecifiedNoteFile(const QString&)':
../TongG-wxNote/wxNote_Gui/wxNote_Window/MainWindowNormal.cpp:458:37: error: '_Splited' was not declared in this scope
make: *** [MainWindowNormal.o] Error 1
03:25:17: The process "/usr/bin/make" exited with code 2.
Error while building/deploying project wxNote (kit: Desktop)
When executing step 'Make'

what's up

好久没见了,还过得好么?

在调试模式下,当没有历史笔记时,程序无法运行。

出错:
ASSERT failure in QList::at: "index out of range", file /usr/include/qt5/QtCore/qlist.h, line 454
Debugging has finished

查看后发现是:
MainWindowNormal.cpp:195
函数名:

_NoteListItem* _MainWindowNormal
        ::_GetFirstNoteInSpecifiedNoteBook(const QString &_NoteBookName)

调用m_NoteList->_GetNotesInSpecifiedNoteBook函数返回未做检查
当没有笔记记录是为空

修改为:

    /* _GetFirstNoteInSpecifiedNoteBook()函数实现 */
    _NoteListItem* _MainWindowNormal
        ::_GetFirstNoteInSpecifiedNoteBook(const QString &_NoteBookName)
        {
        QList<_NoteListItem *> _Notes;
        _Notes = m_NoteList->_GetNotesInSpecifiedNoteBook(_NoteBookName, m_wxNoteTabWidget);
        if(_Notes.isEmpty())
        {
            return NULL;
        }
        return _Notes.at(0);
        }

请管理员确认下。。。

Bug Found

ASSERT failure in QList::at: "index out of range", file /usr/include/qt5/QtCore/qlist.h, line 454
The program has unexpectedly finished.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.