subsurface/qt-ui
Lubomir I. Ivanov a2a93ff04b Models: fix two potential crashes
CylinderModels::setDive() and WeightModel::setDive() have
potential to pass the 'last' argument to beginInsertRows() as
a negative number which triggers an assert that 'last' cannot
be smaller than 'first'.

Patch attempts to fix that by only calling beginInsertRows()
when there is at least one row to insert.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
2013-10-13 11:31:25 -07:00
..
css Added missing CSS file. 2013-09-02 05:57:08 -03:00
marble Work around broken Marble on Debian 2013-05-18 09:49:37 -07:00
about.cpp Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
about.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
about.ui About: improve dialog layout 2013-07-11 09:22:20 -03:00
completionmodels.cpp Compile fix 2013-08-13 20:29:22 +02:00
completionmodels.h Added classes to handle the Completion of Dive Editions. 2013-08-13 10:30:22 -03:00
divecomputermanagementdialog.cpp Good deal of whitespace fixes and code cleanup. 2013-10-11 10:21:04 -03:00
divecomputermanagementdialog.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
divecomputermanagementdialog.ui Converting the device_info list into a Qt data structure 2013-06-18 00:24:28 -07:00
divelistview.cpp Good deal of whitespace fixes and code cleanup. 2013-10-11 10:21:04 -03:00
divelistview.h Good deal of whitespace fixes and code cleanup. 2013-10-11 10:21:04 -03:00
diveplanner.cpp Fix dive planner sidebar depth units 2013-10-11 20:26:28 -07:00
diveplanner.h First steps towards removing glib dependencies 2013-10-06 10:41:44 -07:00
diveplanner.ui Modify the dialog text for the question to make more sense. 2013-10-05 19:48:39 -07:00
downloadfromdivecomputer.cpp Good deal of whitespace fixes and code cleanup. 2013-10-11 10:21:04 -03:00
downloadfromdivecomputer.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
downloadfromdivecomputer.ui implement device probe in C 2013-09-16 22:40:47 -03:00
globe.cpp Fix uninitialized variable 2013-10-13 11:30:36 -07:00
globe.h Consistently use slots / signals 2013-06-19 10:20:56 -07:00
graphicsview-common.cpp Use the same line dimensions as the profile, on the planner. 2013-09-16 19:21:13 -03:00
graphicsview-common.h Use the same line dimensions as the profile, on the planner. 2013-09-16 19:21:13 -03:00
kmessagewidget.cpp Added the Message and the Buttons on the Equipment Tab 2013-09-18 23:23:04 -03:00
kmessagewidget.h Compile fix 2013-05-17 22:27:50 -07:00
maintab.cpp Good deal of whitespace fixes and code cleanup. 2013-10-11 10:21:04 -03:00
maintab.h Remove info.c/info.h 2013-10-07 11:48:14 -07:00
maintab.ui Added salinity to the Dive Info tab. 2013-10-10 07:11:32 -07:00
mainwindow.cpp Trying to switch to Qt translation 2013-10-06 10:42:32 -07:00
mainwindow.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
mainwindow.ui More cleanup for the Gtk+ Style 2013-09-26 16:55:41 -03:00
modeldelegates.cpp Good deal of whitespace fixes and code cleanup. 2013-10-11 10:21:04 -03:00
modeldelegates.h Print: provide means to print profile tables 2013-10-03 09:38:37 -07:00
models.cpp Models: fix two potential crashes 2013-10-13 11:31:25 -07:00
models.h Finish clearing up the TableModels 2013-10-11 11:42:33 -03:00
plotareascene.cpp Add Qtr_ macros that uses gettext in a tr() compatible manner 2013-04-13 20:44:02 -07:00
plotareascene.h Add Qtr_ macros that uses gettext in a tr() compatible manner 2013-04-13 20:44:02 -07:00
preferences.cpp Added configuration options for vertical speed units. 2013-10-04 09:16:39 -07:00
preferences.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
preferences.ui Added configuration options for vertical speed units. 2013-10-04 09:16:39 -07:00
printdialog.cpp Print: add experimental code for printing profiles 2013-07-18 12:00:12 -07:00
printdialog.h Print: add a print preview for testing purposes 2013-07-10 19:27:10 +03:00
printlayout.cpp Print: allow optional table on top of profile 2013-10-07 09:29:40 -07:00
printlayout.h Print: provide means to print profile tables 2013-10-03 09:38:37 -07:00
printoptions.cpp Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
printoptions.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
printoptions.ui Print: correct tab order in the options widget 2013-07-10 10:50:33 +03:00
profilegraphics.cpp Remove unused arg in plot_cylinder_pressure 2013-10-11 10:18:07 -07:00
profilegraphics.h Remove unused arg in plot_cylinder_pressure 2013-10-11 10:18:07 -07:00
renumber.ui Make the renumbering of dives accept numbers up to 99999 2013-10-01 09:47:33 -07:00
simplewidgets.cpp Good deal of whitespace fixes and code cleanup. 2013-10-11 10:21:04 -03:00
simplewidgets.h Partially revert 7a368ab06b 2013-10-03 15:45:06 -07:00
starwidget.cpp The never ending, futile fight for whitespace consistency 2013-05-22 21:31:45 -07:00
starwidget.h Consistently use slots / signals 2013-06-19 10:20:56 -07:00
subsurfacewebservices.cpp Begin to Cleanup the Models, trying to reduce boilerplate. 2013-10-11 10:50:40 -03:00
subsurfacewebservices.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
subsurfacewebservices.ui Hoocked up the buttons and the parsing of the XML. 2013-06-06 11:31:55 -03:00
tableview.cpp Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
tableview.h Make the classes generated by uic be real members of our classes 2013-10-03 12:13:48 -07:00
tableview.ui Fix the positioning of the add button when on Gtk style 2013-09-26 20:35:30 -03:00