Skip to content
This repository has been archived by the owner on Aug 26, 2020. It is now read-only.

Commit

Permalink
v0.9.1 - Fix hyperlinks, improve parser, no memory leaks.
Browse files Browse the repository at this point in the history
  • Loading branch information
3vi1 committed Jun 10, 2017
1 parent a1f6b2f commit 674801a
Show file tree
Hide file tree
Showing 9 changed files with 275 additions and 129 deletions.
10 changes: 10 additions & 0 deletions docs/RELEASES
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
0.9.1 - Fixed the bug I totally missed when implementing hyperlink support
yesterday. They should now work properly.

Parser improvements: IMP should now be able to recognize multiple
sentences within an intel report and handle more complex reports
such as "20+ red KBP. XHQ clr! JEIV pocket status?".

Fixed a memory leak introduced in 0.9.0.

0.9.0 - Automatic update checking! Versions beyond 0.9.0 should alert you
when a new release has been uploaded/committed.

Expand Down Expand Up @@ -282,5 +291,6 @@
Coming soon:

- fix display of messages with backslashes.
- fix bug where map starts updating only every 5 seconds.
- additional sound/volume options for alerts, dependant on jump distance.
- better pilot cache/cleanup.
8 changes: 5 additions & 3 deletions src/chatitemdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ void ChatItemDelegate::paint(QPainter *painter, const QStyleOptionViewItem &opti
doc->documentLayout()->draw(painter, ctx);
painter->restore();

doc->deleteLater();
delete doc;
}
}

Expand Down Expand Up @@ -114,6 +114,7 @@ QSize ChatItemDelegate::sizeHint(const QStyleOptionViewItem& option, const QMode
doc->size().height() + padding.height() :
m_avatarSize.height() + padding.height());

delete doc;
return textSize;
}

Expand All @@ -126,7 +127,6 @@ QString ChatItemDelegate::anchorAt(const QStyleOptionViewItem& option,

QTextDocument* doc = document(options);
QAbstractTextDocumentLayout* textLayout = doc->documentLayout();
doc->deleteLater();

Q_ASSERT(textLayout != 0);

Expand All @@ -135,5 +135,7 @@ QString ChatItemDelegate::anchorAt(const QStyleOptionViewItem& option,
QPoint p = point;
p.setX(p.x() - iconWidth - padding.width());

return textLayout->anchorAt(p);
QString anchor = textLayout->anchorAt(p);
delete doc;
return anchor;
}
2 changes: 1 addition & 1 deletion src/imp.pro
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = imp
TEMPLATE = app

VERSION = 0.9.0
VERSION = 0.9.1
QMAKE_TARGET_COMPANY = EternalDusk
QMAKE_TARGET_DESCRIPTION = Eve Online Intelligence Management Program
QMAKE_TARGET_COPYRIGHT = (c) Copyright 2016-2017 Jesse Litton
Expand Down
2 changes: 1 addition & 1 deletion src/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ void MainWindow::fileChanged(const QString &absoluteFilePath)

}
}
if(toBeAddedToList)
if(toBeAddedToList && message.skipOutput != true)
{
addMessage(message);
}
Expand Down
2 changes: 1 addition & 1 deletion src/map.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
Map::Map(QObject *parent) : QObject(parent)
{
m_timer = new QTimer(this);
setRefresh(5000);
setRefresh(1000);
connect(m_timer, SIGNAL(timeout()), this, SLOT(updateActiveSystems()));
}

Expand Down
4 changes: 2 additions & 2 deletions src/meta.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ static const struct Version
{
Version(){}

QString release = "0.9.0"; //VERSION;
QString name = "Round and Round Lycaan";
QString release = "0.9.1"; //VERSION;
QString name = "Lycaan Trophy";

QString styleHeader1 = "<span style=\" color:#0000ff;\">";
QString styleFooter1 = "</span>";
Expand Down
Loading

0 comments on commit 674801a

Please sign in to comment.