aboutsummaryrefslogtreecommitdiff
path: root/c/episodelistview.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'c/episodelistview.cpp')
-rw-r--r--c/episodelistview.cpp8
1 files changed, 1 insertions, 7 deletions
diff --git a/c/episodelistview.cpp b/c/episodelistview.cpp
index a76717a..72a8618 100644
--- a/c/episodelistview.cpp
+++ b/c/episodelistview.cpp
@@ -2,7 +2,6 @@
#include <vector>
#include <windows.h>
#include <commctrl.h>
-#include <SWI-Prolog.h>
#include "resource.h"
#include "data.h"
@@ -10,7 +9,6 @@
#include "episodelistview.h"
#include "ext.h"
#include "listview.h"
-#include "pl.h"
#include "util.h"
#include "win.h"
@@ -358,9 +356,6 @@ int CALLBACK EpisodeListView::SortProc(const LPARAM iItem1, const LPARAM iItem2,
void EpisodeListView::Update()
{
- if (!Pl("episode_data","ensure_episode_data"))
- return;
-
/* Save scrolling position. */
int iEpTop = 0;
{
@@ -371,9 +366,8 @@ void EpisodeListView::Update()
/* Save selected episodes. */
int iItemMark;
- static std::vector<int> vEpSel;
+ std::vector<int> vEpSel;
{
- vEpSel.clear();
LVITEM lvi = {LVIF_PARAM, -1};
while (FindNextItem(&lvi, LVNI_SELECTED))
vEpSel.push_back(lvi.lParam);