Changeset 588a83e3 in subsurface


Ignore:
Timestamp:
Mar 26, 2017, 9:58:29 PM (2 months ago)
Author:
Dirk Hohndel <dirk@…>
Branches:
master
Children:
cbe6e8e
Parents:
bd0c99d
git-author:
Jan Mulder <jlmulder@…> (03/25/17 03:51:37)
git-committer:
Dirk Hohndel <dirk@…> (03/26/17 21:58:29)
Message:

Fix issue 280: Facebook without a dive selected

Accessing Facebook stuff without a dive selected (as in an empty logbook)
just SIGSEGVs. Just be more carefull.

After this fix, it is still possible to upload an "empty dive" to FB. Ok,
a little pointless, but a nice picture of the Subsurface logo is uploaded
to FB. Consider it an easter egg :-)

Fixes: #280

Signed-off-by: Jan Mulder <jlmulder@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • desktop-widgets/plugins/facebook/facebookconnectwidget.cpp

    rb2cc840 r588a83e3  
    297297        struct dive *d = current_dive;
    298298        QString fullText;
     299
     300        if (!d)
     301                return;
     302
    299303        if (ui->date->isChecked()) {
    300304                fullText += tr("Dive date: %1 \n").arg(get_short_dive_date_string(d->when));
Note: See TracChangeset for help on using the changeset viewer.