mirror of
https://github.com/UltimMC/Launcher.git
synced 2025-12-16 08:57:15 +00:00
Basic 1.6 mod management (no jar mods)
This commit is contained in:
17
gui/ModEditDialogCommon.cpp
Normal file
17
gui/ModEditDialogCommon.cpp
Normal file
@@ -0,0 +1,17 @@
|
||||
#include "ModEditDialogCommon.h"
|
||||
|
||||
bool lastfirst (QModelIndexList & list, int & first, int & last)
|
||||
{
|
||||
if(!list.size())
|
||||
return false;
|
||||
first = last = list[0].row();
|
||||
for(auto item: list)
|
||||
{
|
||||
int row = item.row();
|
||||
if(row < first)
|
||||
first = row;
|
||||
if(row > last)
|
||||
last = row;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
Reference in New Issue
Block a user